rand

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
rand
rand A linear random number generator in the interval [-1,1[
rand(seed) Like rand, except if seed is >0, it is used to initialise the generator.
rand(seed, nr, nc)
seed the start value (if > 0)
nr the number of rows or elements (>=1; def.=1)
nc the number of columns (>=1; def.=1)


|}

Navigation menu

Personal tools