In my Python program I want to roll a dice 8 times, but without it repeating the same value. I am trying different things but can't find a solution. My code is all follows:
if time%2 == 0 and counter_agents<max_agents: 
   succeeded=False  
   teller=0
   while (not(succeeded)and teller<10): 
           dice = random.randint (0,7)
           combis = []
           if dice == 0:                  
               pos_x=20
               pos_y=75 
           elif dice == 1:                  
               pos_x=21
               pos_y=75                   
           elif dice == 2:
               pos_x=60
               pos_y=75                   
           elif dice == 3:
               pos_x=61
               pos_y=75 
           elif dice == 4:
               pos_x=100
               pos_y=75                     
           elif dice == 5:
               pos_x=101
               pos_y=75 
           elif dice == 6:
               pos_x=140
               pos_y=75 
           elif dice == 7:
               pos_x=141
               pos_y=75   
           if counter_agents+1<=max_agents:  #field[pos_y,x_pos]==0 and 
               succeeded=True  
           teller=teller+1   
 
     
     
    