Solved

name generator

Posted on 1998-08-30
1
211 Views
Last Modified: 2008-02-20
i am trying to make a name generator and dont know how to get started if someone could help me with some sample code i would greatly appreciate it thank you
0
Comment
Question by:p400
1 Comment
 
LVL 3

Accepted Solution

by:
a111a111a111 earned 50 total points
ID: 1431977
CLS
PRINT "Welcome to Tiki's Name Generator.  To start, press a key.  To quit, press a key"
PRINT "again.  To pause to view names, push the pause key.  Good luck."
SLEEP
dump$ = INKEY$
RANDOMIZE TIMER
NameLoop:
a = 0: c = 0
WHILE a < 66 OR a = 69 OR a = 73 OR a = 79 OR a = 85
a = INT(RND * 26 + 65)
WEND
b = INT(RND * 5)
IF b = 0 THEN b = 65
IF b = 1 THEN b = 69
IF b = 2 THEN b = 73
IF b = 3 THEN b = 79
IF b = 4 THEN b = 85
WHILE c < 66 OR c = 69 OR c = 73 OR c = 79 OR c = 85
c = INT(RND * 26 + 65)
WEND
d = INT(RND * 5)
IF d = 0 THEN d = 65
IF d = 1 THEN d = 69
IF d = 2 THEN d = 73
IF d = 3 THEN d = 79
IF d = 4 THEN d = 85
b = b + 32: c = c + 32: d = d + 32
PRINT CHR$(a); CHR$(b); CHR$(c); CHR$(d); " ";
IF INKEY$ <> "" THEN END
GOTO NameLoop

Is it helps?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question