Hi, Iīm making a 3D Satellite tracking system as hobbie, I wanīt to test out my application by initializing my satellites with randon numbres, but I canīt fin a function that return random values between 0 & 1.0, or in its defect a function that complies with "int random(x)" where the return is between 0 & X. Can anyone help??



Back in the day when I checked, it was the positive limit of a signed 16-bit integer. I haven't ever bothered to check on modern systems, since I just always use the #define. I had kinda assumed the 16-bit random number was a C convention, but clearly I was wrong. Nice to know 