Skip to content

cf_rnd_seed

Category: random
GitHub: cute_rnd.h


Returns an initialized CF_Rnd based on an initial seed value.

CF_Rnd cf_rnd_seed(uint64_t seed);
Parameters Description
seed The initial seed value for the random number generator.

Remarks

The seed is used to control which set of random numbers get generated. The numbers are generated in a completely deterministic way, so it's often important for many games to control or note which seed is used.

CF_Rnd
cf_rnd