Skip to content

Instantly share code, notes, and snippets.

@koji
Created November 18, 2018 22:00
Show Gist options
  • Save koji/ed88c8c8dc5425cee7944c48feade0b4 to your computer and use it in GitHub Desktop.
Save koji/ed88c8c8dc5425cee7944c48feade0b4 to your computer and use it in GitHub Desktop.
Display Hiraganas randomly
# coding: utf-8
import random
hiragana = ""
for i in range(5):
k = random.randint(ord('あ'),ord('ん'))
hiragana = hiragana + chr(k)
print(hiragana)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment