Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!news.larc.nasa.gov!amiga-request From: amiga-request@ab20.larc.nasa.gov (Amiga Sources/Binaries Moderator) Newsgroups: comp.sources.amiga Subject: v91i114: Names 1.1 - generate random names, Part01/01 Message-ID: Date: 18 May 91 02:10:04 GMT Reply-To: RWALLACE%vax1.tcd.ie@CUNYVM.CUNY.EDU Lines: 279 Approved: tadguy@uunet.UU.NET (Tad Guy) X-Mail-Submissions-To: amiga@uunet.uu.net X-Post-Discussions-To: comp.sys.amiga.misc Submitted-by: RWALLACE%vax1.tcd.ie@CUNYVM.CUNY.EDU Posting-number: Volume 91, Issue 114 Archive-name: utilities/names-1.1/part01 [ includes uuencoded executable ...tad ] Program to generate random names Useful for generating names for stuff like computer games and so on when you can't be bothered thinking them up yourself. At the moment it avoids runs of more than 2 vowels or 2 consonants in a row and generates words of between 3 and 10 letters ... many of the names are unusable, select the usable ones. I decided this was easier than trying to improve the generation process. #!/bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh 'names.c' <<'END_OF_FILE' X/* XNames v1.1 by Russell Wallace 29 July 1989 XProgram to generate random names XUseful for generating names for stuff like computer games and so on when you Xcan't be bothered thinking them up yourself. At the moment it avoids runs of Xmore than 2 vowels or 2 consonants in a row and generates words of between X3 and 10 letters ... many of the names are unusable, select the usable ones. XI decided this was easier than trying to improve the generation process. X*/ X X#define videornd (*((unsigned *)0xdff006)) X Xlong RangeRand (); X Xchar buffer[11]; X Xmain (argc,argv) Xchar **argv; X{ X int i,j,l,NAMES=50; X char c,c1,c2; X if (argc>1) X { X if (!strcmp (argv[1],"?")) X { X printf ("Names v1.1 by Russell Wallace 29 July 1989\n\ XGenerates random names for fantasy games etc.\n\ XUsage: NAMES [number of names to generate]\n"); X return; X } X NAMES=atoi (argv[1]); X } X for (j=0;j'names.uu' <<'END_OF_FILE' Xbegin 644 names XM```#\P`````````#``````````(```3_````K@````$```/I```$_T[Z`S).G XM5?_T.WP`,O_X#&T``0`(;S9(>@&2(&T`"B\H``1.N@+@4$]*0&8.2'H!?DZZF XM!WQ83TY=3G4@;0`*+R@`!$ZZ`DY83SM`__A";?_\8``!2#\\``=.N@(25$]6E XM0#M`__I";?_^8``!!@QM``'__FX>/SP`&DZZ`?)43]!\`&$R+?_^0>R"8A&`H XM$`!@``#<,"W__E-`0>R"8AMP``#_]C`M__Y50$'L@F(;<```__4_/``R3KH!_ XMM%1/2D!F'C\\``).N@&F5$]*0&<(&WP`+?_W8`8;?``G__=@$C\\`!I.N@&(9 XM5$_0?`!A&T#_]Q`M__9(@#\`3KH!/%1/2D!F)!`M__5(@#\`3KH!*E1/2D!F4 XM$A`M__=(@#\`3KH!&%1/2D!GC!`M__9(@#\`3KH!!E1/2D!G)A`M__5(@#\`' XM3KH`]%1/2D!G%!`M__=(@#\`3KH`XE1/2D!F`/]6,"W__D'L@F(1K?_W``!2A XM;?_^,"W__K!M__IM`/[R,"W__D'L@F)",```2&R"8DAZ`*-.N@8<4$]2;?_\4 XM,"W__+!M__AM`/ZP8`#^CC\`3F%M97,@=C$N,2!B>2!2=7-S96QL(%=A;&QAB XM8V4@,CD@2G5L>2`Q.3@Y"D=E;F5R871E@`,$@`M9@9Z`5**8`@,$@`K9@)2BG@`8!8@2E**$!!(@#($POP`C XM"M!!.`"8?``P$!)(@%)`0>R`%`@P``(``&;82D5G!C`$1$!@`C`$3-\$,$Y=@ XM3G4P/'__8`0P+P`,4T!K%"!O``0B;P`(L0EF#%-(2AA7R/_V<`!.=6,$<`%.0 XM=7#_3G5A<$/L@EY%[()>M`@`@N``0!*6<02_H`"$ZN_^)@!D*G\U].0!)^0``?_Y.=4Y5```O"DAY) XM``$``#`L@D[!_``&+P!.N@]6*4"">E!/9A1"ITAY``$``$ZZ#QI03RYL@FY.= XM=2!L@GI":``$(&R">C%\``$`$"!L@GHQ?``!``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MKDZZ`7183TJL@K)G"B\L@K).N@%D6$]*K(*V9PHO+(*V3KH!5%A/+'@`!`@ND XM``0!*6<4+PU+^@`*3J[_XBI?8`9"I_-?3G-*K(*$9C!*K(*09R@P+(*.2,`O( XM`"\L@I!.N@%$,"R"C%)`2,#E@"\`+RR"B$ZZ`3!/[P`08`Y.N@$>+RR"A$ZZ\ XM`4I83R`M__PN;()N3G4H'TY=3G5.50``2.<.(#@M``@P!,'\``8D0-7L@GI*+ XM1&T*N&R"3FP$2I)F$#E\``*"H'#_3-\$<$Y=3G4(*@`'``1F""\23KH`"EA/K XM0I)P`&#B(B\`!"QL@G9.[O_<(B\`!"QL@G9.[O^"(B\`!"QL@G9.[O^X+&R"6 XM=D[N_\HL;()V3N[_?"(O``0L;()V3N[_*$SO``8`!"QL@G9.[O_B+&R"=D[N( XM_\1.^@`"(B\`!"QL@G9.[O^F3.\`#@`$+&R"=D[N_]!(YP$$3.\@@``,+&R"P XM. Mail comments to the moderator at . Post requests for sources, and general discussion to comp.sys.amiga.misc.