From: tinywanda@aol.com (TinyWanda)
Newsgroups: comp.sys.hp48
Subject: Something Fun & Marginally Useful
Lines: 144
NNTP-Posting-Host: ladder01.news.aol.com
X-Admin: news@aol.com
Date: 19 Sep 1998 08:23:33 GMT
Organization: AOL http://www.aol.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <19980919042333.11318.00001757@ng26.aol.com>
Xref: republic.btigate.com comp.sys.hp48:16186


Namerizer
by The TinyWanda Cooperative
September 18 1998

This program listing for the Program/Directory -Namerizer- was provided here
not so much to share the program Namerizer itself with
you...BUT...Rather--!!!--The two peripheral programs which you might actually
find useful...!!!
The documentation for Namerizer was included to provide a foundation for the
validity of listing the other two programs.
(!)

---------------o
Namerizer Creates a randomized Name/Word from a collection of loosely choosen
consonants and vowels...
One of the most annoying things about how the humanimal brain works
--is that were designed to find patterns in things, 
very often--even when no patterns exist...
And it cuts the other way as well-- 
In that the humanimal brain is very poor at creating random sequences of
numbers, or letters, right off the top of our occasionally furry heads.
Thus; it becomes necessary to sometimes create a program that will create
randomized names/words or numerical sequences for us...

Sample list...
Naturally, since this is a very simple program, the raw results need
considerable editing before they can be used for any useful purpose...!!!

Raw Version    Enhanced

Viviofaeda  
Hjypovyjere
Dawkis
Vewtigu(e)
Gacarkihiza
Exunyoo
Gecek
Jigeajyqu      Jigea & Jyqu(e)
Zpozeahei
Yjoryoyuce
Rmibaty        RMiBaty
Asacbogtonu
Selabane
Dgdjri         DGdjri 
Buplhkizc      Bupiloh Kizc
Mukwoyufuyed   Mukwoy Fuyed
Pavygbopexu    Pavy GBopexu
Ydizaotse      Ydizao Tse
Byletga
Nycyxoymfod    Ny Cyxofyodm 
Xykdowub       Owub Xykod 
Ginwybuny      Ginny Bunny
Txonyzahll     Xony Zaholl

---------------o

The Three Programs are:

Namerizer   Creates one Name/Word
            Takes no Input, Returns one String.
		
Get         Gets a random element from a String or List
            Input is either a List or String
            Output is an Object from the List 
            or a Character from the String.
	
Do.?      * The Most Useful Program of the Lot!
            Evaluates or Retains a Program or Object depending
            on a Variance Value provided.
            Input is:
            2:    A Program or Object
            1:         Variance Value
            The Program or Object will be Evaluated if Do.? decides
            that it is statistically ripe to be Evaluated.
            An object that does not change when Evaluated will be
            simply Retained.
            The variance value may be either a number greater than 1
            in which case it will be interpreted as
            1 in that many...
            Such as:
            20 means a 1 in 20 chance of the Object being Evaluated.
            While if the variance value is less than 1
            The fractional amount will be interpreted as a % of
            that amount...
            Such as: .25 means a 25% chance of the Object being
            Evaluated.
            !

Programs/Directory listing(s):

Name:        Name
Size:       507.5
Checksum:  #5CF3h

%%HP: T(3)A(D)F(.);
DIR
  Name
    \<< "aeiouy" \-> \Ga
      \<< "" RAND 4 *
4 + CEIL
        WHILE 1 -
DUP
        REPEAT RAND
\-> \pi
          \<<
            CASE
.01 \pi >
              THEN
{ "qu" "th" "gh"
"ch" "ph" "st"
"ies" "ll" } Get
              END
.85 \pi >
              THEN
"bcdfghjklmnprstvwxyz"
Get
\<< \Ga Get +
\>> .6 Do\183?
              END \Ga
Get
            END
          \>> ROT
SWAP + SWAP
        END DROP
DUP HEAD NUM 32 -
CHR SWAP TAIL +
      \>>
    \>>
  Get
    \<< RAND OVER
SIZE * CEIL OVER
TYPE 2 ==
      \<< DUP SUB
      \>> :: GET IFTE
    \>>
  Do\183?
    \<< DUP 1 < ::
INV IFT RAND * CEIL
1 == :: EVAL ::
DROP IFTE
    \>>
END
