I'm sorry, I know this is a REALLY elementary post, but I've only recently (as in the past few days), started learning C++. (I've been a Basic/VB programmer my whole life).
I got a book on C++ and have been learning, as well as following OpenGL tutorials.. The syntax is the only major issue, however I'm not having too much of a problem following it..
What' I'm looking for is a Random Number function, that can give me a float value between 0 and 1. The only random function shown in the book I have, rand(), seems only to give integers and does not allow for the specification of a range.
I appreciate your help in advance.
Thanks!
--NipsMG
I got a book on C++ and have been learning, as well as following OpenGL tutorials.. The syntax is the only major issue, however I'm not having too much of a problem following it..
What' I'm looking for is a Random Number function, that can give me a float value between 0 and 1. The only random function shown in the book I have, rand(), seems only to give integers and does not allow for the specification of a range.
I appreciate your help in advance.
Thanks!
--NipsMG