Bentley
Member
Hello. I want to make a typing game and I have a quick question.
1. I'm going to use random letters to make a string. These are my first thoughts on how to do it:
In the above example, each word would be 10 letters long, and each letter is randomized. Is there
an easier way to randomize the letter rather than choose("A"..."E")
Thanks for reading!
1. I'm going to use random letters to make a string. These are my first thoughts on how to do it:
Code:
letter_total = 10;
for (var i = 0; i < letter_total; i += 1)
{
letter[i] = choose("A", "B", "C"); // ...all the way to "E"
}
an easier way to randomize the letter rather than choose("A"..."E")
Thanks for reading!
Last edited: