(Apr-28-2021, 12:55 PM)raarkil Wrote:import random >>> def rand(): for i in range(6): … return random.randint(1,40) >>> x = rand() print(x)I suppose you want this
No
What I need is to execute the function rand() - so it means to pick up 6 numbers randomly and to display it and after to call this function separately
Your code works but I have to do 6 entry for having 6 results