본문 바로가기

Python

Random int generation in range

반응형
from random import randint print(randint(0, 9))

integers ranging from 0 to 9 will be chosen randomly