Okay... I am using the randn function for a sequence of normally distributed numbers.(adsbygoogle = window.adsbygoogle || []).push({});

I am writing a program whereby I need to use this randn to give me random x and y values whose position r is less than 1

i.e. that is to say that all points fall within a 2 x 2 square centred at (0, 0).

And I MUST use randn

Can anyone help me achieve this.

thanks

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab Help

**Physics Forums | Science Articles, Homework Help, Discussion**