# -*- coding: utf-8 -*- from random import * s = u'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん' print '\n'.join('%c%c' % (choice(s), choice(s)) for _ in xrange(100))
#choiceを知らなかったとき
#coding:utf-8 import random a = u"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん" m = random.randint(0, len(a) - 1) n = random.randint(0, len(a) - 1) print a[m:m + 1] + a[n:n + 1]