home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Educate / Educate.zip / lotto.zip / readMe.txt < prev   
Text File  |  1995-08-24  |  2KB  |  41 lines

  1. lotto, freeware for OS/2 command-line (c) Kjetil Kilhavn 1995
  2.  
  3. This is a little program to draw your lotto numbers.
  4. Actually it can be used as a random integer generator for any purpose.
  5. Developed with C Set++ version 2.0 as my attempt at a useable class-implementation.
  6. I have included both the static and dynamic link versions.
  7. (The static was so big I decided to send both.)
  8. Target processor is 486 (you know what pentiums do to numbers :-)
  9.  
  10. The program has its own random number generator based on generators in the book
  11. Numerical Recipes in C; Press, Vetterling, Teukolsky and Flannery. (0-521-43108-5)
  12. The generator has a period of 2.1 x 10^9, which should suffice for most people.
  13. If you do not specify a seed for the generator a "random" one will be generated.
  14.  
  15. Options available:
  16.   -r<rounds>  Rounds of draws to make
  17.   -n<numDraw> Numbers in one draw
  18.   -l<low>     Low limit
  19.   -h<high>    High limit
  20.   -s<seed>    Seed for random sequence
  21. Switches available:
  22.   /s  Sorted order output
  23.   /p  Pause between rounds
  24.   /u  Unique numbers only
  25.   /c  Copyright notice display
  26.   /h  Help display
  27.   /?  Help display
  28.  
  29. It's given me more income than expenses since I started using it 10 months ago.
  30. This is freeware of course, who would pay for a silly little program like this.
  31. If you win a lot, send me a postcard :-)
  32.  
  33. Next version, if there will be one will enable you to select different generators
  34. and also be able to give floating-point output. It's in the class but not in the program.
  35.  
  36. Comments to kjetil.kilhavn@fou.telenor.no
  37.  
  38. Here's my command-lines
  39. Lotto /c /u /s /p -l1 -h34 -n7 -r10
  40. Lotto /c /u /s /p -l1 -h34 -n9 -r1
  41.