GNU Info

Info Node: (librep.info)Random Numbers

(librep.info)Random Numbers


Next: Characters Prev: Numeric Predicates Up: Numbers
Enter node , (file) or (file)node

Pseudo-Random Numbers
---------------------

   The `random' function allows pseudo-random numbers to be generated.

 - Function: random #!optional limit
     Return a pseudo-random number between zero and LIMIT-1 inclusive.
     If LIMIT is undefined, it is taken as being the largest positive
     integer representable in a fixnum.

     Calling `random' with LIMIT equal to the symbol `t' seeds the
     generator with the current time of day.


automatically generated by info2www version 1.2.2.9