Kaya 0.5.2 reference for Builtins::srand

List of functions and data types in Builtins

Void srand(Int seed)

Arguments

Usage

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

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya