DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
random.choice
np
.
random
.
choice
(
5
,
3
,
replace
=
False
,
p
=
[
0.1
,
0
,
0.3
,
0.6
,
0
]
)
array
(
[
2
,
3
,
0
]
)
# random
Source by numpy.org #
PREVIOUS
NEXT
Tagged:
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit