repl.it
@charles2588/

ClearcutSecondhandHusky

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import random
def rand5():
	return random.randrange(0,6,1)
def rand7():
	diff=7-5
	x=rand5()
	if x<=rand5():
		return x
	else:
		return x+diff
#arr=range(0,6)
#count=0
for i in range(50):
#	if count>7:
#		break
#	if rand7() in arr:count+=1
	print(rand7())