• LazaroFilm
    link
    fedilink
    English
    3711 months ago

    I prefer using a whole wall of lava lamps for a random number.

    • @[email protected]
      link
      fedilink
      English
      911 months ago

      Seems like the place to share. Ages ago a group epoxied a webcam and used the random flashes (from cosmic rays?) as their source of randomness.

  • cheee
    link
    fedilink
    English
    2111 months ago

    Incredible, cracked the pseudorandomness problem with this simple code that guarantees a random whole number greater than 3 and less than 5.

  • @[email protected]
    link
    fedilink
    English
    1911 months ago

    Just update the code once a year to a different number, given long enough time the output will have a perfectly flat distribution.

  • Captain Janeway
    link
    fedilink
    English
    1311 months ago

    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.

    • Spzi
      link
      fedilink
      English
      711 months ago

      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.

  • @[email protected]
    link
    fedilink
    English
    311 months ago

    Wasn’t that then number always returned by the PS3 random number generator used in their DRM?