Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jakylla to [email protected]English • 1 year ago

xkcd #221: Random Number (9 Nov 2007)

programming.dev

message-square
15
fedilink
  • cross-posted to:
  • [email protected]
334

xkcd #221: Random Number (9 Nov 2007)

programming.dev

Jakylla to [email protected]English • 1 year ago
message-square
15
fedilink
  • cross-posted to:
  • [email protected]

cross-posted from: https://programming.dev/post/8677292


  • xkcd / 221
  • Explain xkcd / 221

Transcript:

[A computer program.]

int getRandomNumber()
{
   return 4; // chosen by fair dice roll.
             // guaranteed to be random.
}

Hover Text:

RFC 1149.5 specifies 4 as the standard IEEE-vetted random number.

  • veroxii
    link
    fedilink
    English
    9•1 year ago

    I mean, how many random numbers can there even be?

    • @[email protected]
      link
      fedilink
      English
      4•1 year ago

      Not more than six, at least if you use a standard dice.

[email protected]

[email protected]
Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

A community for a webcomic of romance, sarcasm, math, and language.

  • 2 users / day
  • 1 user / week
  • 143 users / month
  • 632 users / 6 months
  • 2 subscribers
  • 367 Posts
  • 7.08K Comments
  • Modlog
  • mods:
  • @[email protected]
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org