I use Python for a competition in which I create a bot to play a game. The problem is that it does not have any cc support, so I do not have access to the modules random, numpyand scipy.
I will have approximately 400 mb of memory, and I'm looking for a way to create single random numbers between 0 and 1 for simulation purposes during the game.
Please note that I used the clock time to generate one number, but the problem is that I will need loads with numbers without a big change in the clock, which will lead to a constant number. In fact, I am limited to a maximum of 1 second, for example, for 100 thousand numbers.
I am considering loading data, but then the problem will be that the bot will always use the same numbers. Again, the circumstances for which I need to use numbers are slightly different.
Using Python 2.7, hoping people have some suggestions.
source
share