Discuss this page on this pages [[seededRandom Talk Page|TalkPage]]
=== seededRandom ===
See [[http://xelerus.de/index.php?s=functions&function=299|seededRandom at Xelerus]]
^ Syntax | (seededRandom number expression [number]) |
^ Arguments | number: the seed of the random number generator |
^ | expression: can be a number or a list. |
^ | [number]: The number you want to a random number between them the second must be greater than the first number. |
^ Returns | expression: If the expression argument is a list it returns a random element of the list, if the expression is a number then returns a number between the expression number and optional number. |
^ Category | [[0.99]], [[random]] |
^ Description | If the expression argument is a list it returns a random element of the list depending on the seed, if the expression is a number then returns a number between the expression number and optional number, always depending on the seed. |
=== Example ===
(seededRandom 1 1 10)
Returns 2
(seededRandom 1 '(a b c d e f g h i l))
Returns b
Return to [[:Functions]] list