name generator

Posted on 1998-08-30
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
Question by:p400
1 Comment

Accepted Solution

a111a111a111 earned 50 total points
ID: 1431977
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."
dump$ = INKEY$
a = 0: c = 0
WHILE a < 66 OR a = 69 OR a = 73 OR a = 79 OR a = 85
a = INT(RND * 26 + 65)
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)
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); " ";
GOTO NameLoop

Is it helps?

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

861 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