I need help with this issue: I've created a class whose reference is a random number. The problem is this: every time a call that class, i get the same number, making pointless the use of random; is there any way to solve this?
import random
class dicethrow:
result = random.randint (1,6)
a = dicethrow ()
b = dicethrow ()
Using this, a == b always, i need them to be different. Thanks!