Skip to main content
added 108 characters in body
Source Link
Yousername
  • 4.1k
  • 4
  • 5

Generate a Random Integer

Your task is to create a program or function that outputs an integer from \$-\infty\$ to \$+\infty\$ non-deterministically (the output will not always be the same result). Each integer should have a nonzero chance of being outputted.

Rules

  • Please explain what your code does to confirm that it can produce any integer.
  • For the purpose of this challenge, you may ignore your language's number limits for storing an arbitrarily large/small number.
  • Output should be in decimal form.
  • This is , so the shortest answer in bytes wins.

Generate a Random Integer

Your task is to create a program or function that outputs an integer from \$-\infty\$ to \$+\infty\$ non-deterministically (the output will not always be the same result).

Rules

  • Please explain what your code does to confirm that it can produce any integer.
  • For the purpose of this challenge, you may ignore your language's number limits.
  • Output should be in decimal form.
  • This is , so the shortest answer in bytes wins.

Generate a Random Integer

Your task is to create a program or function that outputs an integer from \$-\infty\$ to \$+\infty\$ non-deterministically (the output will not always be the same result). Each integer should have a nonzero chance of being outputted.

Rules

  • Please explain what your code does to confirm that it can produce any integer.
  • For the purpose of this challenge, you may ignore your language's number limits for storing an arbitrarily large/small number.
  • Output should be in decimal form.
  • This is , so the shortest answer in bytes wins.
Source Link
Yousername
  • 4.1k
  • 4
  • 5

Generate a Random Integer

Your task is to create a program or function that outputs an integer from \$-\infty\$ to \$+\infty\$ non-deterministically (the output will not always be the same result).

Rules

  • Please explain what your code does to confirm that it can produce any integer.
  • For the purpose of this challenge, you may ignore your language's number limits.
  • Output should be in decimal form.
  • This is , so the shortest answer in bytes wins.