THE INFINITE MONKEY THEOREM: The infinite monkey theorem states that a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type any given text, including the complete works of William Shakespeare. Source: Wikipedia In this program, I replaced the monkeys with randomness. And instead of "infinite amount of monkeys in an infinite amount of time", I can only create 20,000 "monkeys" and type out the minimum limit of typing out the given text. The way I did this was by creating a list of rows for 20,000 "monkeys" to type on, (I'm aware that the limit for each list is 200,000 rows, but my program can only save such an amount of data), then I have them type out random keys, those consisting of only the alphabet (a-z), and the space key ( ). Then I give it a score based on its accuracy and find out which one has the best score.
Thanks to some random youtube video for informing of this 2 months ago. June 29: Added buttons and allowed the monkeys to type more keys, unfortunately limiting the probability of having 100% accuracy due to more possibilities also embrace monke