Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 8 - QuickDraw GX Mathematics / QuickDraw GX Mathematics Reference
Mathematical Functions / Random Number Generation


GetRandomSeed

You can use the GetRandomSeed function to return the current seed for the random number generating algorithm.

wide *GetRandomSeed(wide *seed);
seed
A pointer to the current random number generator seed.
function result
The pointer passed in the seed parameter.
DESCRIPTION
The GetRandomSeed function returns the current seed for the random number generator and returns the pointer passed in seed.

SEE ALSO
The RandomBits function uses the current seed to generate the next random number. The RandomBits function is described in the previous section. The SetRandomSeed function changes the current seed. The SetRandomSeed function is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996