mac@programming.dev to Game Development@programming.dev • 8 months agoWhen Random Numbers Are Too Random: Low Discrepancy Sequencesexternal-linkmessage-square4 fedilinkarrow-up122
arrow-up122external-linkWhen Random Numbers Are Too Random: Low Discrepancy Sequencesmac@programming.dev to Game Development@programming.dev • 8 months agomessage-square4 Commentsfedilink
minus-squareSatanicNotMessianic@lemmy.mlhexbear10·8 months ago7 is the most random number, because when you ask someone to choose a random number between 1 and 10, most people choose 7. Whenever you need a random number in your code, don’t use rand() or a similar function. Use 7. It’s faster, and it’s the choice of the people. linkfedilink
7 is the most random number, because when you ask someone to choose a random number between 1 and 10, most people choose 7.
Whenever you need a random number in your code, don’t use rand() or a similar function. Use 7. It’s faster, and it’s the choice of the people.
// guaranteed to be random