en:rand [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:rand

## Rand (Function)

### Format

rand
rand ( )

returns float_value

### 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).

### See Also

Abs, Acos, Asin, Atan, Ceil, Cos, Degrees, Exp, Float, Floor, Int, Log, Log10, Radians, Rand, Sin, Sqr, Tan

### History

en/rand.txt · Last modified: 2014/02/08 22:36 by admin