0

I am programming a bingo and I need to generate a number to fill each coordinate, right now I have an algorithm to give me random numbers but I need a way to make sure those numbers don't repeat themselves.

n=0
while n<=4:    
  x=random.randint(1,21)
  app.put_number(n,0,x,1)
  n=n+1

app.put_number is a predetermined function for this assignment. the important thing is to make x not repeat itself the 5 times the algorithm r

DYZ
  • 55,249
  • 10
  • 64
  • 93

0 Answers0