lotto, freeware for OS/2 command-line (c) Kjetil Kilhavn 1995

This is a little program to draw your lotto numbers.
Actually it can be used as a random integer generator for any purpose.
Developed with C Set++ version 2.0 as my attempt at a useable class-implementation.
I have included both the static and dynamic link versions.
(The static was so big I decided to send both.)
Target processor is 486 (you know what pentiums do to numbers :-)

The program has its own random number generator based on generators in the book
Numerical Recipes in C; Press, Vetterling, Teukolsky and Flannery. (0-521-43108-5)
The generator has a period of 2.1 x 10^9, which should suffice for most people.
If you do not specify a seed for the generator a "random" one will be generated.

Options available:
  -r<rounds>  Rounds of draws to make
  -n<numDraw> Numbers in one draw
  -l<low>     Low limit
  -h<high>    High limit
  -s<seed>    Seed for random sequence
Switches available:
  /s  Sorted order output
  /p  Pause between rounds
  /u  Unique numbers only
  /c  Copyright notice display
  /h  Help display
  /?  Help display

It's given me more income than expenses since I started using it 10 months ago.
This is freeware of course, who would pay for a silly little program like this.
If you win a lot, send me a postcard :-)

Next version, if there will be one will enable you to select different generators
and also be able to give floating-point output. It's in the class but not in the program.

Comments to kjetil.kilhavn@fou.telenor.no

Here's my command-lines
Lotto /c /u /s /p -l1 -h34 -n7 -r10
Lotto /c /u /s /p -l1 -h34 -n9 -r1
