Design a program that generates a 7-digit lottery number. The program should have an Integer array with 7 elements. Write a loop that stepsthrough the array, randomly generating a number in the range of 0through 9 for each element.(use random function). Then write anotherloop that displays the contents of the array. Python is the language, and this must be in flowchart form. Pseudocode will be sufficient though. Use only a single main module for all your code.For your random number generator, useSet array[index] = random(0, 9) in a Processing symbol.Wherearray is the name of your array andindex is your loop control variable.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here