Kaya 0.5.1 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 function can be used to give a different sequence each time the program is run.

Related

kaya@kayalang.org | Last modified 30 December 2008 | Supported by Durham CompSoc | Powered by Kaya