rand

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 17:31, 18 November 2010 by Admin (talk | contribs) (1 revision: Initial import)
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