This wiki is out of date, use the continuation of this wiki instead

Rand seed

From FenixWiki

Revision as of 23:27, 8 July 2007 by Sandman (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


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.

Parameters

INT seed - The seed for the random generator used in rand().

Returns

INT : true

Personal tools