User Tools

Site Tools


el:rand

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

el:rand [2016/01/01 22:39] (current)
Line 1: Line 1:
 +===== Rand =====
 +==== Format ====
 +**rand**\\
 +**rand**()
 +
 +==== Description ====
 +Returns a random number between 0 and 1.  The distribution of the values is uniform.
 +==== Note ====
 +To produce random numbers between other values, simple multiply or add the appropriate numbers. ​ For example, to generate an integer between 0 and 10, use int(rand * 10).
  
el/rand.txt ยท Last modified: 2016/01/01 22:39 (external edit)