Differences

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

Link to this comparison view

rnd [2019/05/07 21:59]
neils created
rnd [2019/05/07 22:01] (current)
neils
Line 10: Line 10:
   * an integer between -32768 and +32767   * an integer between -32768 and +32767
   * a float between 0 and 1   * a float between 0 and 1
 +
 +Example:
 +
 +  print "​we'​ll flip a coin"
 +  if rnd() < 0 then print "​heads"​ else print "​tails"​
 +