string - jQuery, how would i create a random name pulled from a name-list.txt based on user input -


i building phone app using phonegap build limited html5, css , javascript / jquery, achieve following.

i take input user "john smith" , based upon input, pull lines file, if user enters same name, same result. googled , found articles using syllables , character count name generate name etc nothing seemed wanted do.

i planned on hashing users input , storing in remote db randomly generated name , if hash comes again use same name, local on device great load times etc.

do have idea best way generate random name based off users input? appreciated, thanks!

my name-list.txt looks this:

cup annihilator bobby val halen chupa'clark'bra hawii mushinator release 

why not save javascript object instead of text?

then can make quick ajax call , object. faster using plain file , running regex.

depending on how contents of file are, can construct json.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -