1Builtins.srand(3kaya)        Kaya module reference       Builtins.srand(3kaya)
2
3
4

NAME

6       Builtins::srand - Seeds the random number generator
7

SYNOPSIS

9       Void srand( Int seed )
10

ARGUMENTS

12       seed The initial seed
13

DESCRIPTION

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

AUTHORS

22       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
23       (kaya@kayalang.org). For further information see http://kayalang.org/
24

LICENSE

26       The Kaya standard library is free software;  you  can  redistribute  it
27       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
28       License (version 2.1 or any later version) as  published  by  the  Free
29       Software Foundation.
30
32       Builtins.rand (3kaya)
33
34
35
36Kaya                             December 2010           Builtins.srand(3kaya)
Impressum