Modify your randSeq.html function so that the possible characters that make up the random sequence are specified

Question:

Modify your randSeq.html function so that the possible characters that make up the random sequence are specified by the user. Your modified page should have a text box where the user can enter the possible characters. The GenerateSequence function should access the text box and use its contents as input to the RandomChar function calls. For example, if the user entered "abcdefghijklmnopqrstuvwxyz" in the text box, then the function should generate and display a random 3-letter sequence, as before. If the user enters "0123456789" in the text box, however, then the function should generate and display a random 3-digit sequence.

The two most frequently used letters in the English language, ordered by frequency, are e, t, a, o, i, n, s, h, r, and d. As a result, if you generated random letter sequences using only these ten letters, you might expect to have a greater likelihood of obtaining words. Use your modified randseq.html page to generate random 3-letter sequences using "etaionshrd" as the alphabet. Do you obtain more words than you did with the complete alphabet?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: