VG3_nw_random_initseed()
[added in version 1.2]
Return initial seed-number for VG3_nw_random_getnext().
SYNTAX
unsigned int
VG3_nw_random_initseed(unsigned int modifier)
FUNCTION PARAMETERS
modifier | Number to individualize random generation |
RETURN VALUE
Return initial seed-number.
DESCRIPTION
To use VG3_nw_random_getnext() for generating random numbers,
a seed-number has to be passed.
VG3_nw_random_initseed() returnes an initial seed-number suitable for network games,
and must be (re)called after calling VG3_nw_connect()
and before calling VG3_nw_random_getnext().
The modifier should be unique for each individual code-block, e.g. object,
it takes care, that each code-block generates individual random numbers.
SEE ALSO