Random numbers

From Rosetta Code
Revision as of 03:28, 7 April 2007 by 69.12.181.181 (talk) (New task)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Task
Random numbers
You are encouraged to solve this task according to the task description, using any language you may know.

The goal of this task is to generate a 1000-element array (vector, list, whatever it's called in your language) filled with normally distributed random numbers with a mean of 1.0 and a standard deviation of 0.5

IDL

result = 1.0 + 0.5*randomn(seed,1000)