[[random()]]
This translation is older than the original page and might be outdated. See what has changed.
Translations of this page:
 

This is an old revision of the document!


random()

int random(int min, int max)

The function random() returns a whole number between min and max. It is suitable for random draws with replacement. Examples of its use as part of a random draw can be found in the chapter Randomization.

  • min
    The smallest number allowed
  • max
    The largest number allowed

Note: Although one could create an experimental randomization via random(), we strongly recommend using a Random Generator. For more information abour randomization an experimental groups see Randomization.

Return Value

A whole number between min and max

min ≤ return value ≤ max

en/create/functions/random.1496748618.txt.gz · Last modified: 06.06.2017 13:30 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki