Instantly share code, notes, and snippets.

@habi /Lottomat.py
Last active Aug 29, 2015

Embed
What would you like to do?
# -*- 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