-NVM, solved- RAND_MAX not available?
#1
-NVM, solved- RAND_MAX not available?
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
(This post was last modified: 05-26-2023, 05:06 PM by KayBee.)
KayBee
Octane

Trade Count: (0)
Posts: 132
Threads: 40
Joined: Feb 2020
Find Reply
05-26-2023, 05:00 PM


Messages In This Thread
-NVM, solved- RAND_MAX not available? - by KayBee - 05-26-2023, 05:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)