User Tools

Site Tools


en:seed

Differences

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

Link to this comparison view

en:seed [2016/09/08 11:23]
admin created
en:seed [2016/09/08 11:25] (current)
admin
Line 1: Line 1:
 ===== Seed (Statement) ===== ===== Seed (Statement) =====
 ==== Format ==== ==== Format ====
-**seed**\\ +**seed** ​ ​[[numericexpressions|start_value]]\\ 
-**rand** ( +**seed** ( [[numericexpressions|start_value]] )
- +
-returns ​[[floatexpressions|float_expression]]+
  
 ==== Description ==== ==== Description ====
-Returns a random number ​between 0 and 1.  The distribution ​of the values is uniform. +Initializes the random number ​generator [[rand|rand]] to start a specific sequence ​of pseudo-random numbers.
-==== 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 ==== ==== See Also ====
Line 15: Line 11:
  
 ==== History ====  ==== History ==== 
-|||+|1.99.99.65|New to Version|
en/seed.txt · Last modified: 2016/09/08 11:25 by admin