User Tools

Site Tools


en:seed

This is an old revision of the document!


Seed (Statement)

Format

seed
rand ( )

returns float_expression

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

History

en/seed.1473358997.txt.gz · Last modified: 2016/09/08 11:23 by admin