Lottery
1
2
3
4
5
6
Draw 6 random numbers and add their values to the <div class="ball">
tags after clicking the 'Draw balls' button. The range for each number is between 1 and 45, where both 1 and 45 are included.
- Use a loop to generate a random number 6 times and add them to the
<div class="ball">
tags - REMARK: To avoid a number appearing more than once (in an efficient way), we need to be a little further in the course