Solved

name generator

Posted on 1998-08-30
1
200 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
consolidate or create a new vba code for performing tasks 5 66
String manipulation in Visual Basic 7 64
Adding to a VBA? 6 70
Macro Excel - Multiple If conditions 2 72
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 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