반응형
from random import randint print(randint(0, 9))
integers ranging from 0 to 9 will be chosen randomly
'Python' 카테고리의 다른 글
numpy array with increasing integer element (0) | 2018.11.22 |
---|---|
generate a sequence of random int in range (0) | 2018.10.30 |
How to fit a curve using scipy.optimize.curve (0) | 2018.10.29 |
Histogram function (0) | 2017.12.08 |
Copy files in a directory to another directory (0) | 2017.12.01 |