int randvar=rand()%100; //not working
Hi, If i use the line above it generates the same number (7) each time on my system (osx10.3). Doe anyone know why this happens? Something wrong with the code maybe?
The code is complied with xcode 1.5, which calls g++ (3.2?) for the complie.
Thanks,
Gir.



LinkBack URL
About LinkBacks



Let's say for the sake of argument that we follow the convention of not using NULL in favor of 0: