- This wiki is out of date, use the continuation of this wiki instead
Rand seed
From FenixWiki
(Difference between revisions)
Revision as of 23:27, 8 July 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Current revision (16:03, 1 March 2008) (edit) (undo) Sandman (Talk | contribs) m |
||
Line 16: | Line 16: | ||
== Returns == | == Returns == | ||
'''INT''' : [[true]] | '''INT''' : [[true]] | ||
+ | |||
+ | {{Funcbox | ||
+ | | category = Math | ||
+ | }} |
Current revision
[edit] Definition
INT rand_seed ( <INT seed> )
Seeds the random generator, used in rand().
This is useful for synchronizing the random generator on multiple machines, as when the same seed is used, calls to rand() with the same limits will return values in the same order on all the machines.
[edit] Parameters
INT seed | - The seed for the random generator used in rand(). |
[edit] Returns
INT : true
Math Functions | |
• Abs() • Acos() • Asin() • Atan() • Cos() • Fget_angle() • Fget_dist() • Get_distx() • Get_disty() • Pow() • Rand() • Rand_seed() • Sin() • Sqrt() • Tan() • |