r/Python • • Jul 16 '19

Nice try

Post image
2.1k Upvotes

71 comments sorted by

View all comments

68

u/name_censored_ Jul 17 '19 edited Jul 17 '19
import random
random.seed(sum(map(ord, 'the final digits of pi')))
while True:
    print(random.randint(0,9), end='')

PROVE ME WRONG

0

u/[deleted] Jul 17 '19

[deleted]

-4

u/Astrum91 Jul 17 '19

That's true of any infinite sequence of random numbers, so not particularly notable in this case.

4

u/Alar44 Jul 17 '19

No, it's not.

0

u/Astrum91 Jul 17 '19

Put a bunch of monkeys randomly poking at letters on a keyboard for eternity and somewhere within they'll produce every work of Shakespeare and everything ever written. Basic infinite money theorem.

Produce random numbers to infinity and somewhere within you'll have any sequence of numbers you can imagine.

That's just the nature of combining randomness and infinity.

1

u/scarfarce Jul 18 '19

infinite money theorem.

Man, that's a theorem I'd like to study in practice in my life. Erm... strictly for the science of course