//somewhere in the init
orxMath_InitRandom((orxS32)orxSystem_GetRealTime());//a good seeding value//elsewhere, a random number between 1 and 100
orxFLOAT randomNumber = orxMath_GetRandomFloat(1,100);
en/examples/maths/generating_random_numbers.1518583664.txt.gz · Last modified: 2018/02/14 00:47 (7 years ago) (external edit)