Basically I am trying to make a game, where I generate 15 different numbers between 1 and 15, and then assign them all to one variable for each number.
I tried using random.sample but it wasn't able to assign the numbers to a single variable per number. Alternatively, I tried typing out 'if' statements, determining if there is duplicates, but it didn't work, and takes a long time.
numbers = random.sample(range(15), 15)
print(numbers)
I hoped that I could somehow assign each number to a variable, for example, the first number it generates will be called firstnumber, secondnumber will be the second number generated.