You are only browsing one thread in the discussion! All comments are available on the post page.

Return

captainjaneway ,
@captainjaneway@lemmy.world avatar

I generate a random number and then use that number as a seed. I then generate a random number. Then I use that number as a seed. I then generate a random number. I divide that number by a random prime number picked in a similar fashion. I take the last n-digits of the remainder and that’s the random number I give to a user.

Trabic ,

Was it 4?

captainjaneway ,
@captainjaneway@lemmy.world avatar

maybe

Crashumbc ,

42

Spzi ,

That’s already pretty cool! It surely does generate very random numbers. I still think you can take it a step – or a random number of steps, hah! – further by repeating the process a random number of times! Maybe this way we can reach maximum randomness. Probably need to reroll the number until it’s big enough for that.

I would also check if the result is 4. If it’s 4, it should be discarded. 4 is not an actual random number but a joke random number from a comic.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • All magazines