Builtins::srand(3) Seeds the random number generator

SYNOPSIS

Void srand( Int seed )

ARGUMENTS

seed The initial seed

DESCRIPTION

Seeds the random number generator. This must be called before any calls to Builtins.rand(3kaya) are made. Seeding with the same integer will give the same sequence of pseudo-random numbers. Where unpredictability is not crucial, the Time.time(3kaya) function can be used to give a different sequence each time the program is run.

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

RELATED

Builtins.rand(3kaya)