+ 1
How to print random number from 1 to 10 without any module ?
before some days I wrote some code for that but now I forget it I used something set and dictionary for that please somebody help me to write it again..
1 Réponse
+ 3
There are some ideas here.
https://stackoverflow.com/questions/22950768/random-int-without-importing-random
I think dict and set may not work for this, because they store and retrieve values in the order that they were added. In earlier Python versions the access was really random.