Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

random character generation #1

Open
mszegedy opened this issue Aug 27, 2021 · 0 comments
Open

random character generation #1

mszegedy opened this issue Aug 27, 2021 · 0 comments

Comments

@mszegedy
Copy link

i decided it's fun to generate uniformly random characters constrained to a certain unicode range. for example 256 characters of random i ching hexagrams (4dc0–4dff) looks like this

䷧䷸䷳䷞䷘䷩䷦䷟䷗䷪䷳䷢䷐䷨䷽䷞䷄䷲䷳䷮䷭䷱䷱䷴䷸䷥䷾䷣䷫䷸䷂䷪䷌䷞䷉䷢䷧䷄䷲䷳䷠䷊䷜䷩䷗䷋䷶䷐䷜䷽䷉䷽䷼䷠䷈䷔䷁䷍䷲䷗䷴䷒䷏䷑䷏䷴䷚䷸䷦䷉䷗䷐䷈䷎䷔䷿䷼䷉䷧䷧䷊䷯䷻䷦䷀䷰䷰䷼䷖䷐䷅䷏䷦䷩䷳䷷䷣䷝䷱䷐䷀䷙䷷䷵䷛䷌䷁䷋䷑䷶䷾䷞䷰䷔䷈䷿䷿䷉䷾䷹䷘䷧䷐䷕䷊䷕䷭䷀䷈䷡䷄䷐䷎䷲䷜䷭䷊䷿䷀䷇䷃䷧䷐䷕䷩䷱䷏䷲䷢䷹䷵䷺䷋䷜䷂䷃䷾䷠䷍䷉䷿䷓䷇䷎䷼䷶䷤䷮䷫䷈䷭䷓䷵䷬䷔䷦䷟䷚䷾䷌䷍䷃䷬䷒䷮䷸䷠䷇䷤䷖䷠䷨䷆䷛䷨䷉䷛䷺䷖䷾䷽䷣䷧䷶䷉䷗䷓䷡䷇䷫䷘䷎䷂䷵䷪䷧䷦䷌䷠䷮䷕䷜䷣䷆䷄䷵䷪䷚䷅䷥䷫䷐䷩䷨䷋䷜䷛䷗䷂䷻䷞䷙䷷䷶䷟䷞䷡䷴䷈䷹䷧䷰䷮䷁䷼䷣

256 characters of random braille (2800–28ff) looks like this

⡹⢄⣹⡂⣕⡚⣰⠃⢡⡚⣲⢤⠹⢧⣀⠀⡞⢜⣅⢸⡎⠠⠣⢱⠇⡶⢒⣝⡗⣅⢙⡝⣨⣊⢊⠘⡎⢼⡟⢮⡋⠻⠷⡾⠑⠗⡇⠱⠋⡸⠓⣽⠌⣾⡋⢏⡵⢤⡠⣫⠆⣲⢤⣋⣠⠻⢡⠫⠼⡈⣽⢠⣹⢐⠓⠮⠤⠍⡇⢤⢠⡐⡦⠥⡈⢫⠓⠄⡃⢥⢕⣁⡎⠆⡖⠋⢞⣾⠤⢇⠖⢳⣧⣿⡟⣺⠔⢏⡮⣒⣵⠄⠏⡖⡌⣅⡸⡔⡏⣽⡦⣑⠜⠒⡹⣄⡱⣃⣻⢥⣦⠖⢭⢏⢩⠬⠮⠵⢲⢅⡍⣿⡸⠡⠠⡧⠾⡹⡫⣬⠵⢅⣃⢋⠩⢥⡶⢀⡙⣹⡘⢜⡺⠯⡼⡟⣡⢁⡨⡋⢿⣫⠶⠦⡏⠉⠺⠿⠙⣈⢰⢻⠁⣷⢛⣂⢐⡎⣆⡆⡳⢉⢦⢼⡸⣷⠌⡏⠱⢝⡝⢈⣖⠪⡁⠳⣂⢳⢸⣍⣑⣢⡁⡒⠺⣐⡑⢰⢛⢨⣼⣚⢉⢼⠮⡡⢕⣽⣾⠌⠙⢦⡢⠾⠇⣈⣷⡯⡦⡲⡒⣄⠯⣳⠛⠆⢟⡶⣵⣺⢣⢄⣂⠼⢀⠚

and 256 characters of random "unified" canadian aboriginal syllabics (1400–167f) looks like this

ᗎᑑᖟᓚᗼᙴᑮᖪᓺᓁᑭᓃᔭᘱᒻᘊᔉᖷᓵᐎᘣᑹᖒᒌᕻᙿᔧᑝᐻᒕᙿᕁᔊᔶᒇᗏᒞᕑᖵᖓᖇᗩᒐᕭᔲᒑᗻᖿᒥᖢᗓᗂᘛᑅᓖᑸᗡᙟᕧᖮᑫᘉᕁᖄᕜᐿᗓᓻᖾᓇᑣᑧᐦᑣᘫᘂᙵ᐀ᑡ᙭ᓠᑐᙲᔄᑈᘭᔆᒗᖨᓪᕟᓌᒳᗵᓥᑖᑪᗜᐢᗤᗃᒖᖝᔎᕰᓨᙆᕏᕈᑍᕏᔠᖭᗺᒪᙐᙻᓻᗖᔟᙔᓯᑏᑶᓡᗎᔌᐔᕺᑭᖀᘆᖘᓢᐓᐳᒶᗬᗝᕡᐭᙨᔉᒳᓸᐌᓆᗸᔎᗲᖒᑒᖄᗧᙉᖏᔑᐃᓻᓶᕎᔢᕾᘓᔷᑲᙬᗭᖧᔼᐏᘩᓓᙐᙫᘖᑙᙁᕴᘂᘏᒨᙔᐷᑃᙂᓏᐸᓬᑓᕕᖍᕙᐖᗈᓟᘗᒺᕳᕍᕕᕲᕪᙑᑹᗤᕓᓢᘌᙙᙫᒁᓵᗕᙇᒀᓞᗧᔂᘨᘕᖩᒙᑽᖝᘘᓖᒴᘩᔷᘽᒇᔫᐙᙾᘞᐭᓓᓩᑘᔕᔀᒘᔏᓑᐥᕆᑫᐺᒨᔖᘛᕪᑶᙈᖳ

this is a gold mine of untapped entertainment potential. you should add it. one-liner for i ching hexagrams example (sorry gtg to dinner i can do a more general example later if you want)

''.join(chr(int('4dc0', 16)+randrange(64)) for _ in range(256))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant