Hi,
does repeatingly doing this:
float num = GetRandomFloat( );
for(;;)
{
float random = GetRandomFloat( );
num*=random;
num/=random;
}
Will num stay the same?
What can I do to make it stay the same (FixFloat(&rand om) e.g?)
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%c gl%ssic%ccom%c" , "ma", 58, 'g', 64, "ba", 46, 10);}
_______________ _______________ __________
Looking for a good game? Do it yourself!
GLBasic - you can do
does repeatingly doing this:
float num = GetRandomFloat( );
for(;;)
{
float random = GetRandomFloat( );
num*=random;
num/=random;
}
Will num stay the same?
What can I do to make it stay the same (FixFloat(&rand om) e.g?)
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%c gl%ssic%ccom%c" , "ma", 58, 'g', 64, "ba", 46, 10);}
_______________ _______________ __________
Looking for a good game? Do it yourself!
GLBasic - you can do
Comment