RenderWare V2.1

Previous Page Index Next Page

void

RwSRandom(RwUInt32 seed);

Description

Sets pseudo random number sequence start for RwRandom().

Arguments

seed Value to seed pseudo random number sequence.

Return Value

None.

Comments

Unlike srand(), RwSRandom() does not return the old seed; the reason for this is that the amount of state information used is much more than a single word. Like rand(), however, RwRandom() will by default produce a sequence of numbers that can be duplicated by calling RwSRandom() with 1 as the seed.

See Also

RwRandom()