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

Rand seed

From FenixWiki

(Difference between revisions)
Jump to: navigation, search

Revision as of 23:27, 8 July 2007


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