My question is:
to create an array of 6 lotto numbers. The numbers should be between 1 and 40 and you are not allowed to put into the array any number that is already in it.
Hint: You are using an array of 6 numbers so that’s a loop
generate a temporary number
while that number is already in the lotto array regenerate it
put your temporary number in the current slot of the array