Answer the question
In order to leave comments, you need to log in
The probability of a random number generator to create a book
Hello. I wonder what is the probability that the random number generator (randomize, /dev/urandom) will give us a text that is completely identical to the contents of all volumes of L.N. Tolstoy "War and Peace"
Is it 2^(the number of letters in the novel) or much more?
Answer the question
In order to leave comments, you need to log in
This is the number of characters of the alphabet and punctuation to the power of the number of letters in the novel. In the process of such a selection, you will receive a multi-volume book with the continuation of War and Peace and an alternative version where Andrei Bolkonsky is killed by the Teenage Mutant Ninja Turtles as a pleasant bonus.
It is necessary that each byte matches the corresponding letter. The probability of one match is 1/255. The probability of matching the entire text is (1/255)^n, where n is the number of characters. This is for ASCII.
Several million "virtual monkeys" slapping keyboards at random are close to recreating the complete works of Shakespeare
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question