A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
time() is generating unique times, verified printing to console.
srand(time()) is generating the same seed every time.
srand(0) generates a seed, but srand with anything else as a parameter creates a different but non unique seed. I can only obtain two different seeds. Any ideas? Here’s a link to my project rantro-intro.
Apparently seems need to be vastly different to provide proper results. Time in seconds is not enough. I looked at some python libraries for reference. Thank you.
albertodemichelis/squirrel - srand #172
Having an issue with srand.
srand(0) generates a seed, but srand with anything else as a parameter creates a different but non unique seed. I can only obtain two different seeds. Any ideas? Here’s a link to my project rantro-intro.