Kaynağa Gözat

lotto gespielt

Hans Hildebrandt 7 yıl önce
ebeveyn
işleme
9cf58c4f34
1 değiştirilmiş dosya ile 13 ekleme ve 1 silme
  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()