• 0 Posts
  • 4 Comments
Joined 2 months ago
cake
Cake day: August 10th, 2026

help-circle

  • This is exactly what the linked python code is doing, right? Just retrying the random call if the sampled value is outside of the acceptable range (adjusted for the fact that Python generally makes random numbers only available between 0-1).

    So for my simple coin flipping app, i have the choice between doing it right, and using up more of the randomness my computer has stored suring runtim, or doing it wrong, and by the end of human existence, the coin will have come up heads once too often. I think this isn’t something terribly problematic. Still an interesting read though.

    Also, I don’t know that much about how the computer creates random numbers, but how certain can we be that the original random call actually is uniformely distributed to begin with?


    score 1 · canonical