get_urand

Read high-entropy random numbers from from /dev/urandom (Unix and Mac only)

Syntax

   u = get_urand(n)

Arguments

input

   n          number of random numbers (default: 1)

output

   u          random numbers (double)

Description

Reads n unsigned 32-bit integers from /dev/urandom and converts them to double. Handy for initial seeding of RNGs; see rng_seed, startup. On systems without /dev/urandom an alternative is get_crand.

See also

get_crand | rng_seed | startup