橘子味的心
标题:Python3 数字Number Randrange 方法

Python3 数字Number Randrange 方法

#!/usr/bin/python3
import random

# randomly select an odd number between 1-100
print ("randrange(1,100, 2) : ", random.randrange(1, 100, 2))

# randomly select a number between 0-99
print ("randrange(100) : ", random.randrange(100))

目录

分类