Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get random number positive or negative python

import random
return 1 if random.random() < 0.5 else -1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #number #positive #negative #python
ADD COMMENT
Topic
Name
7+3 =