KATA: give a name to numbers from 1 to 100,000,000, eg Jane Lois Fitzgerald, and figure out a way to repeatably look up the name for 65m
Most name generators aren't repeatable & need to generate 63m names to repeatably get the 63m name.
Wife says this is no way to name a child
So this makes names like crabby_office from a number & could be reversable.
https://github.com/matthewdeanmartin/so_pip/blob/main/so_pip/parse_python/make_name.py♡ 0 ↻ 0Problems:
- I'd like a user created prefix, e.g. fizz_buzz_crabby_office
- but that would break reversability if folk picked names from the same space♡ 0 ↻ 0So I solved this and it works by mapping 10,000 random words over 10,000^2 different specific ints. Try a few dozen examples...
9008451 => video_benz
40476966=> boobs_handled
Sigh. This algorithm needs more work.♡ 0 ↻ 0