Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

non-integer arg 1 for randrange()

#the problem is you pass an float argument to randint wich not support that
#we should use random.uniform()

rand = random.uniform(-0.5,0.5)
print(rand)
 
PREVIOUS NEXT
Tagged: #arg
ADD COMMENT
Topic
Name
9+1 =