Last active
August 29, 2015 14:05
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Lottomat für http://www.bernerzeitung.ch/14012675 | |
""" | |
import numpy | |
import random | |
LottoZahlen = [] | |
# nur eineindeutige Nummern zwischen 0 und 47 | |
while len(numpy.unique(LottoZahlen)) < 6: | |
LottoZahlen.append(random.randint(1,46)) | |
print 'Ein zufälliger Tipp ist:', | |
for i in sorted(numpy.unique(LottoZahlen)): | |
print i, | |
print '\nViu Glück' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment