Piano Random Note Button Bug Hunt! Test your Troubleshooting.
This code will upload to your Code Piano, but there is something off about the ‘randomness’ of the tones.
This code will upload to your Code Piano, but there is something off about the ‘randomness’ of the tones.
The random() function needs two piece of information inside its parentheses: the minimum value it can choose from and the maximum value it can choose from. Take a peek at the random() function in this program - what are the minimum and maximum values? Are they in the right order?