DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+5 =
Submit