Difference between revisions of "Manual:DIL Manual/rnd()"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
 
Line 1: Line 1:
 
 
<span id="bfrnd"></span>
 
 
  integer rnd ( i1 : integer , i2 : integer )
 
  integer rnd ( i1 : integer , i2 : integer )
 
     i1 : Start of range.
 
     i1 : Start of range.
Line 7: Line 4:
 
     return: A random integer in an interval from 'i1' to 'i2'.
 
     return: A random integer in an interval from 'i1' to 'i2'.
 
     Example: i := rnd(1,10);
 
     Example: i := rnd(1,10);
 +
 +
See also:
 +
  > openroll()

Latest revision as of 04:07, 30 July 2022

integer rnd ( i1 : integer , i2 : integer )
   i1 : Start of range.
   i2 : End of range.
   return: A random integer in an interval from 'i1' to 'i2'.
   Example: i := rnd(1,10);

See also:

 > openroll()