Start hacking on a C(++) implementation of the optimizer
[evolve-layout.git] / nordtast_skripte / zufall.py
blob021d0609340e0544c9dfaef03a702908049ef44f
1 #-*- coding: utf-8 -*-
2 import codecs
4 import random
5 random.seed()
7 alfa = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h',
8 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
9 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
10 'y', 'z', 'ä', 'ö', 'ü', 'ß', ',', '.']
12 aus = codecs.open('tastaturen.txt', encoding = 'utf-8', mode = 'w')
14 i = 0
15 while i <= 200:
16 random.shuffle(alfa)
17 #tmp = alfa[0:13] + ['e'] + alfa[13:17] + ['n'] + alfa[17:]
18 #ta = ''.join(tmp)
19 #aus.write(ta.decode('utf-8') + '\n')
20 aus.write(''.join(alfa).decode('utf-8') + '\n')
21 i += 1