generating random names

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
toms100
Forum Contributor
Posts: 119
Joined: Wed Feb 26, 2003 10:29 am
Location: Bristol,UK

generating random names

Post by toms100 »

hi
for a management game im making, i need to generate a load of ficticous players to fill my player database.
stat generating i can do, but what about generating names?

i was thinking about having parts of names and sticking htem together randomly, but would that work out ok?

hope someone can give some input.
thanks
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

How about making a text file, filling it with as many names as you can come up with(one name per line). Then generating a random number between 1 and the last line of the file. Then printing that last line?
Bongulim
Forum Newbie
Posts: 21
Joined: Thu Aug 07, 2003 12:50 pm

Post by Bongulim »

http://www.rinkworks.com/namegen/
rinkworks is a great site generally.
toms100
Forum Contributor
Posts: 119
Joined: Wed Feb 26, 2003 10:29 am
Location: Bristol,UK

Post by toms100 »

thanks, but thats all fantasy...
i think im going to hav eto find lots of real names :)
Post Reply