DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
sample one point from distribution python
numpy.random.choice(numpy.arange(1, 7), p=[0.1, 0.05, 0.05, 0.2, 0.4, 0.2])
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sample
#point
#distribution
#python
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit