get_crand

Generate a high-entropy random number from clock time

Syntax

   u = get_crand

Arguments

output

   u          a random number (double)

Description

Generates a 32-bit integer from clock time via an inscrutable munge and converts it to double. (Nearly always) increases sequentially every tenth of a millisecond, and will not repeat for about five days. Handy for initial seeding of RNGs; see rng_seed, startup. On Unix or Mac systems, get_urand is probably to be preferred (for Windows we might implement something based on rand_s at some point).

See also

get_urand | rng_seed | startup