rand
From STX Wiki
< Programmer Guide | Command Reference | EVAL
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) |
|}