Skip to content

Instantly share code, notes, and snippets.

@habi
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save habi/88ee4f78cff0ccf87848 to your computer and use it in GitHub Desktop.
Save habi/88ee4f78cff0ccf87848 to your computer and use it in GitHub Desktop.
# -*- 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