IRIX Network Forums
-NVM, solved- RAND_MAX not available? - Printable Version

+- IRIX Network Forums (//forums.irixnet.org)
+-- Forum: SGI/MIPS (//forums.irixnet.org/forum-3.html)
+--- Forum: Development/Porting (//forums.irixnet.org/forum-9.html)
+--- Thread: -NVM, solved- RAND_MAX not available? (/thread-3949.html)



-NVM, solved- RAND_MAX not available? - KayBee - 05-26-2023

EDIT: never mind, works fine. Too many windows open, compiling the wrong stuff.

Hi Devs,

I am new to development. In wanting to generate random floats between 0 and 1, searches on the web show the use of RAND_MAX. I get
"The Identifier "RAND_MAX" is undefined" when I try to use it.

I am including <stdlib.h>

Maybe I am missing something, anyone know about this?

Thank you.
KB