ENIGMA Development Environment
(at 2020-07-04 02:03:29;
Click here to view
Outsourcing saves money
Random number questions
Topic: Random number questions (Read 731 times)
May 11, 2014, 08:06:00 PM
Joined: Jan 2014
My question regards random numbers in ENIGMA. Back in the days I was reading the GMC I remember many complaints from people that numbers were not truly random and had a tendency of repeating in patterns. It was mentioned by YYG that this was by design to allow easy tracing and debugging and was suggested to people that they use randomize ();
Since ENIGMA is based off of C++, does it work the same ? Do I have to use random seed or just randomize for truly random sequences ?
Also does the randomize() also affect all random functions such as random range ?
Reply #1 Posted on:
May 11, 2014, 10:35:40 PM
Location: Cappuccino, CA
Joined: Jan 2013
Yes I believe we wrap the actual c standard functions, that said, there is no such thing as a truly random number, which is up for philosophical debate.
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
Reply #2 Posted on:
May 12, 2014, 04:44:31 AM
Joined: Apr 2008
We actually use several implementations as far as I know. One is something from delphi which could work just like GM. But they are as random as they come. There shouldn't be any repeating patterns. We could use the C++11 random functions which would even use hardware if possible (like some intel CPU's have a instruction that returns random value based on some quantum effects).