#!/usr/bin/python
# -*- coding: utf-8 -*-

'''
3.11    随机选择
Created on 2016年8月30日
@author: wang
'''

import random
values = [1,2,3,4,5,6]
print(random.choice(values))
print(random.choice(values))
print(random.choice(values))

print(random.sample(values, 2))
print(random.sample(values, 2))
print(random.sample(values, 3))
print(random.sample(values, 3))

random.shuffle(values)
print(values)

print(random.randint(0,10))
print(random.randint(0,10))
print(random.randint(0,10))
print(random.randint(0,10))

print(random.random())
print(random.random())
print(random.random())

print(random.getrandbits(200))

random.seed()
random.seed(12345)
random.seed(b'bytedata')
