Provided by: kaya_0.4.4-6ubuntu3_amd64
Builtins::srand - Seeds the random number generator
Void srand( Int seed )
seed The initial seed
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.
Kaya standard library by Edwin Brady, Chris Morris and others (email@example.com). For further information see http://kayalang.org/
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.