ich wollte mir mal die Funktionen des random-Moduls anschauen.
Leider bekomme ich immer die Fehlermeldung: "AttributeError: 'module' object has no attribute x
Wobei x die entsprechende Funktion ist.
Weiß jemand, was ich ändern muss?
Code: Alles auswählen
import random
print random.seed(0)
print random.choice([1,2,3,4])
print random.random()