86thumbs
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jakylla@sh.itjust.works to xkcd@lemmy.worldEnglish · 2 年前

xkcd #221: Random Number (9 Nov 2007)

programming.dev

message-square
15
fedilink
330

xkcd #221: Random Number (9 Nov 2007)

programming.dev

Jakylla@sh.itjust.works to xkcd@lemmy.worldEnglish · 2 年前
message-square
15
fedilink

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.

  • Trabic@lemm.ee
    link
    fedilink
    English
    arrow-up
    12
    ·
    2 年前

    Was it 4?

    • Captain Janeway@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 年前

      maybe

      • Crashumbc@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 年前

        42

xkcd@lemmy.world

xkcd@lemmy.world

remote_follow_modal_title

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: !xkcd@lemmy.world

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

community_visibility: public
globe

public_blurb

  • 281 users / day
  • 1.03K users / week
  • 2.83K users / month
  • 7.18K users / 6 months
  • number_of_local_subscribers
  • 13.1K subscribers
  • 416 Posts
  • 7.27K Comments
  • Modlog
  • mods:
  • koraro@lemmy.world
  • UI: unknown version
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org