I have the following situation:
I have a vector with 4 indexes. At each index a random value of 0 to 100 is generated.
I have a code that does it perfectly, but sometimes the numbers repeat.
Below the code:
from random import randint
AP_X = [randint(0, 100), randint(0, 100), randint(0, 100), randint(0, 100)]
print AP_X
I want NEVER to generate repeating numbers. For example: [4,4,6,7]
How can I do this?