Geoff's random number Generator

Here's a little somethin I wrote a few years ago. Long before the wonders of cyberspace started to occupy my time and attention. It's a program written in GWBASIC to generate a series of 'random' numbers. Enjoy

Instructions:

* You will need to download the following files and save them onto your hard drive. If you've never downloaded from the web before, you really should. It's a great way of filling your computer with all kinds of interesting and even useful stuff, including viruses which can be a lot of fun to watch these critters in action. But I digress. To save a file you will need to be able to 'browse' your hard drive. When you click on the files below, a dialogue box ought to pop up giving you two options (I'm assuming you are browsing the web using Internet Explorer). One option is 'Run the program from its current location'. The other is 'Save this program to disk'. You need to click the circle alongside this second option. Next, you will be asked where you want to save the file.

* You can save my files anywhere that takes your fancy. I don't mind. Save them in the windows directory if you like. All I would say is that these files all need to live in the same directory for the program to work. To select a specific directory, you need to click on the small, black, downward pointing triangular arrow. Then select "C:", then select whichever directory you wish to save the file to. I hope that's clear enough. If not, ask a friend to show you how to do it. Or give me your address and I'll astral travel over to you when i get a spare moment.

{Here's a bit more info on How to download files from the internet}

* The files you will need to save are as follows:

KENO.BAT

KENO2.BAS {Note - for this file, you'll need to click with your right button and select 'Save Target as ...'}

KENO.DAT {Note - for this file, you'll need to click with your right button and select 'Save Target as ...'}

GWBASIC.EXE

To run the random number generator, simply execute the file KENO.BAT. The easiest way to do this is to click on your start button and select 'Run', then browse your disk to the directory where you saved the files. Alternately, you could select 'Find' and then 'Files or Folders ...' and then type the name 'KENO.BAT' into the box that says 'Named:'

Then when the file has been found, you double-click on it. Note: since this is a DOS-based program, you may need to enlarge the window in which it appears. One way to do so is to hold down the 'Alt' key nd press 'Enter'.

Enjoy ...

Note: If you're not happy with numbers between 1 and 40, you will have to modify line number 100 in the program. To terminate a BASIC program, hold down 'Ctrl' and the press the ScrollLock key on your keyboard. Then clear the screen (Ctrl & Page Down). Then type in the command 'LIST 100'. This will list the current contents of that line. The variables are fairly self-explanatory. The variable called HIGH controls the range of numbers that will be generated. You can enter any number that takes your fancy. Fo r example, down here in Oz, we have keno which is 80 numbers. The variable TOTAL controls the total number of 'random numbers' that will be generated. I often set this to ten if I want some keno numbers.

I almost forgot. You need to enter the command RUN to run the program again after making your modifications.

BTW, if you do happen to win big, just remember where you got the numbers. :)

Intro to GWBASIC

If after all that, you can't get the program to work, here's a list that I'll update regularly of numbers I've generated at my end:

Click here

If there's any problems with the downloads or the instructions, please feel perfectly free to send me an email, by clicking on the image below:

mailto:grjallen@hotmail.com


While on the subject of GWBASIC programs, here's a couple of others you might like to play around with. Remember, you need to click with the right button and select 'Save as'. To learn more about GWBASIC commands, I'll have a hunt around for a link or two - or you could always purchase a book on it if you're really keen on exercising those creative impulses ...

DALI66.BAS - I wrote this ages ago for a 386 speed machine and the visual effect was a tad more serene. You can sit back and watch the colours change but if you hit 'Enter', each time you do, you alter the contours of the regions. Enjoy.

To me it looks a bit like a map of somebody's brain activity. On a fast computer, it looks like an acid trip. To me, anyway.

More to follow ...

TRIX4.BAS

TRIX66.BAS {Once I upload it, of course ...}

WORDS99.BAS {Once I upload it, of course ...}

PIXEL44C.BAS {Once I upload it, of course ...}

Oh, what the heck, click here for the index to the whole directory where I will be uploading these files at some stage or other. As always, if I neglect to do so, please send me an email ...

Note: If you see your screen filled with line numbers etc, you need to click on the link with your right mouse button and select 'Save as' ...

Back to my main page