瀏覽代碼

lotto gespielt

Hans Hildebrandt 7 年之前
父節點
當前提交
9cf58c4f34
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      manhattenlotto.py

+ 13 - 1
manhattenlotto.py

@@ -1,4 +1,16 @@
1 1
 #Lotto 6 aus 45
2 2
 #Hans Hildebrandt
3 3
 #27.04.2017 Version 1.0
4
-
4
+import random
5
+def lottozahlen():
6
+	ziehung=[]
7
+	bed=False
8
+	while bed==False:
9
+		zahl=random.randint(0,45)
10
+		if not zahl in ziehung:
11
+			ziehung.append(zahl)
12
+		if len(ziehung)==6:bed=True
13
+	print ziehung
14
+	zus=random.randint(1,10)
15
+	print zus
16
+lottozahlen()