home *** CD-ROM | disk | FTP | other *** search
/ Big Blue Disk 32 / bbd32.zip / LOTTO.TXT < prev    next >
Text File  |  1989-04-05  |  19KB  |  386 lines

  1. |A╔══════════╗════════════════════════════════════════════════════════╔══════════╗
  2. |A║ |6Helpware |A║══════════════════════ ^1Lotto Help |A══════════════════════║ |6Helpware |A║
  3. |A╚══════════╝════════════════════════════════════════════════════════╚══════════╝
  4. ^Cby
  5. ^CRobert L. Joy
  6.  
  7. ^CINTRODUCTION
  8.  
  9.     Okay, so you are fond of participating in your state's lottery.  Isn't it
  10.  good to know that even if you don't win, your money will do some good close to
  11.  home?  You pick up a newspaper and go directly to your favorite spot, the
  12.  gamesters section.  "Oh no!  What's this?  I've been doing this thing all
  13.  wrong." You've always wanted to make that big score (who hasn't?).  But the
  14.  columnist is telling you that certain types of selections are not random
  15.  enough and too many winners have to share the prize.  The columnist is
  16.  referring to number selections that form a pattern, such as a straight line on
  17.  your ticket.  Later, you find yourself at your town's on-line lottery agency
  18.  pondering a scheme of numbers not fitting a pattern.  Tough, isn't it.  Enter
  19.  LOTTO HELP.
  20.  
  21.  
  22. ^CWHAT IS LOTTO HELP?
  23.  
  24.     LOTTO HELP is a random number generator, capable of generating random
  25.  number strings, that supports many government lottery formats.  You may choose
  26.  from the "Pick 4" scenario to any pick-length up to 10 inclusive.  LOTTO HELP
  27.  presents its selections in tabular form, sorted low-to-high.  Each table
  28.  contains 10 of your selected "picks", even though you may not want to play 10
  29.  games.
  30.  
  31.     But wait, there's more!  Wouldn't it be great if you could actually draw
  32.  numbers based on some kind of intelligence?  LOTTO HELP gives you that
  33.  capability with its data management utility.  You'll draw numbers based on the
  34.  way they have been running.  More on that later.
  35.  
  36.  
  37. ^CLOTTO HELP MENUS
  38.  
  39.     The LOTTO HELP program is driven by menus.  There are two, the MAIN menu
  40.  and the DATA menu.  Menu operation is simple.  Just move the menu highlight
  41.  bar up or down with the up/down cursor keys to mark your choice, then press
  42.  ENTER.  Both menus respond appropriately to the HOME and END keys.
  43.  
  44.     Let's start by taking a look at the Main menu.  This is the "trunk" which
  45.  leads to all of the program's "branches".
  46.  
  47. ^CPick  4 random numbers
  48. ^CPick  5 random numbers
  49. ^CPick  6 random numbers
  50. ^CPick  7 random numbers
  51. ^CPick  8 random numbers
  52. ^CPick  9 random numbers
  53. ^CPick 10 random numbers
  54. ^CRandom numbers to  999
  55. ^CBingo number generator
  56. ^CData  manager  section
  57.  
  58.     PICK nn RANDOM NUMBERS:  Each of the seven "Pick" selections operates in
  59.  the same general fashion.  After selecting any "Pick" you will be asked to
  60.  furnish a "High" number.  The number must be greater than, or equal to, the
  61.  pick and not greater than 99.  This number will define the upper limit of the
  62.  range of numbers generated with "1" as the low limit.
  63.  
  64.     After the high number has been defined, the program creates a "card" of
  65.  numbers containing 10 rows of random numbers between 1 and the upper limit you
  66.  defined (inclusive).  You can press "G" to display a new set of numbers or
  67.  press "A" to leave the first card as-is and display a new card.  "A" can be
  68.  exercised twice for a total of 3 cards.  F2 will return you to the Main Menu.
  69.  
  70.     RANDOM NUMBERS TO 999:  This option allows you to create 12 x 10 random
  71.  number tables for general use.  The "high" pick is automatically set to 999.
  72.  Tables of this sort are most useful to engineers, quality assurance
  73.  technicians and the statistically oriented.  The tables operate in the same
  74.  general way as the lottery options.
  75.  
  76.     BINGO NUMBER GENERATOR:  Perhaps mentioning this option, in this way, does
  77.  not do it justice.  It is really a full-featured utility for running a Bingo
  78.  game.  Within this option LOTTO HELP displays a calling board, "calls" the
  79.  numbers and keeps track of all numbers that have been called.  If you have a
  80.  printer connected, the program can even make the Bingo cards for you.  And, of
  81.  course, all of the cards are different.  (Anyone in your office care to gather
  82.  around the office PC for a nice friendly game of Bingo, next lunch hour?)
  83.  
  84.     So...  why include a Bingo utility in a program designed to assist you in
  85.  filling out your lottery ticket?  Why not!  Most of the program code needed to
  86.  do the job already existed in the lottery procedures.  Enjoy!
  87.  
  88.     DATA MANAGER SECTION:  Choosing this option brings-up LOTTO HELP's other
  89.  menu, the Data Menu.  Using the data manager you can create and maintain a
  90.  database of numbers actually drawn in your local games.  You are able to write
  91.  new records, browse your records and most important, ANALYZE your data!
  92.  
  93.     All of the data-handling features "do business" from the same I/O window.
  94.  First, the window will prompt you for a "Pick Type".  If you are involved in a
  95.  game which uses 10 numbers, then you would enter "10" for pick-type.  Now
  96.  let's explore some of its features:
  97.  
  98. ^CWrite to the database
  99. ^CRead database records
  100. ^CGet  data  statistics
  101. ^CFind  the hot numbers
  102. ^CFind the cold numbers
  103. ^CEmpty entire database
  104. ^CEmpty a selected file
  105. ^CGenerate  sample data
  106. ^CChange data directory
  107.  
  108.     WRITE TO THE DATABASE:  Make this selection to enter numbers and begin
  109.  building your own database.  A cursor (..) will appear in the left column and
  110.  guide you through the input process.  If you notice a mistake before entering
  111.  the last number, press <ESC> and you can begin again.  The date field is
  112.  optional.  If you are not into keeping track of dates, press <ENTER> over the
  113.  empty field, "--none--" will be stored in the file.  Any record you add is
  114.  appended to the end of the file you have chosen.
  115.  
  116.     READ DATABASE RECORDS:  The read option lets you browse your recorded data
  117.  a page-at-a-time.  You may want to verify your data or just satisfy your
  118.  curiosity.
  119.  
  120.     GET DATA STATISTICS:  Here, you will be able to gather some useful
  121.  information about the data in your file(s).  The information is gathered "on-
  122.  the-fly" through the I/O window.  A new window pops up giving your data-file's
  123.  name, the lowest and highest numbers hit, the hit range, the average hits per
  124.  number in the range, the total numbers in the file, the number of records and
  125.  the bytes available on the data drive.  If you keep your data on floppies, it
  126.  is a good idea to keep an eye on the bytes-free.
  127.  
  128.     FIND THE HOT NUMBERS:  Simply put, "hot" numbers are those showing more
  129.  activity than others.  Again, the selected file flies through the I/O window.
  130.  When the EOF is reached, and a key pressed, an interesting looking window asks
  131.  you to adjust the sensitivity of the "hot-number" filter.  The sensitivity
  132.  needs to be flexible to accommodate a wide range in variance and various file
  133.  sizes.
  134.  
  135.     If you have a statistically significant amount of data in your file, the
  136.  adjustment effect will be obvious.  If there is too little data in the file,
  137.  adjustment will have little effect.  As a general rule, start with the default
  138.  sensitivity, 5, by pressing <ENTER>.  If you determine that you need more (or
  139.  less) numbers, you can repeat the process adjusting the filter as you see fit.
  140.  
  141.     The end-product of this activity is displayed on the LOTTO HELP SCOREBOARD.
  142.  The scoreboard will show you the number of hits on every number in the current
  143.  file.  The bottom of the display will contain your "hot" numbers in, what
  144.  else, red.
  145.  
  146.     FIND THE COLD NUMBERS:  The cold numbers are numbers showing considerably
  147.  less activity than others.  The operation of this feature needs little explan-
  148.  ation since it is identical to the operation described above.
  149.  
  150.     There is one important difference, however.  If cold numbers are defined
  151.  here, first, they are retained for use back at the Main Menu in generating
  152.  selections for your games.
  153.  
  154.     Here's how it works.  Lets assume you have built a database for a "Pick 10"
  155.  type game and want to avoid betting on the less active numbers in the game you
  156.  are about to play.  Select the data manager and use this option to "filter"
  157.  the cold numbers from your PICK10.DAT file.  Return to the Main Menu and
  158.  proceed with the generation of numbers for your game.  The program will prompt
  159.  you regarding elimination of the cold numbers from the cards it is about to
  160.  produce.  If you don't want LOTTO HELP to include cold numbers in its
  161.  selection, press "Y" at the prompt.  ([Y]es, filter out and eliminate the cold
  162.  numbers).
  163.  
  164.     EMPTY ENTIRE DATABASE:  NOT for the faint-of-heart!!  This option does just
  165.  what it says, trashes your whole database, all seven files.  Be sure this is
  166.  what you really want to do.  If, however, you stumble into this option with a
  167.  misplaced keystroke, you can take comfort in knowing you will have the
  168.  opportunity to back-out gracefully.  Press <ESC> or "N" after the alarm.
  169.  
  170.     EMPTY A SELECTED FILE:  This option is not quite as violent but certainly
  171.  destructive to the target file.  Again, know what you are doing and if you
  172.  stumble in you can back out.
  173.  
  174.     GENERATE SAMPLE DATA:  It takes a considerable amount of time to build a
  175.  useful database.  Maybe your agency runs its game only once or twice a week.
  176.  Meanwhile, you have a lot of capability in LOTTO HELP that you are not able to
  177.  explore.
  178.  
  179.     With this feature you can create 160 records (games) of sample data to let
  180.  you experiment with the program.  You can load one file or all seven files
  181.  with sample data.  The date field will contain "-sample-" so you won't grab a
  182.  sample file thinking it is an actual data file.
  183.  
  184.     CHANGE DATA DIRECTORY:  You may want to store your data on a drive other
  185.  than the drive you booted LOTTO HELP from.  Dual-floppy users may prefer
  186.  having data stored on a separate disk or hard disk users may not want data on
  187.  their fixed drive.
  188.  
  189.     Use this option to specify another drive\directory path for your data.  The
  190.  path can contain up to 11 characters.  The program recognizes standard MS-DOS
  191.  format.  If more information is needed on changing drives or directories,
  192.  consult your DOS manual.
  193.  
  194.  
  195. ^CA SAMPLE SESSION
  196.  
  197.     A hefty portion of the program's code is devoted to the user interface.
  198.  You should have no difficulty using the program.  At the Main Menu, decide
  199.  what format you will need for your game.  Simply move the menu's highlight bar
  200.  with the vertical cursor keys and press ENTER.
  201.  
  202.      Let's assume that your state lottery offers a game where you must pick 6
  203.  numbers between 1 and 54.  You can play 2,4,6,8 or 10 games at $.50 per game.
  204.  You decide to play 8 games.  You have built a pretty extensive database of
  205.  numbers drawn in your state's game and have decided to use LOTTO HELP's
  206.  ability to select numbers based on hit frequency.
  207.  
  208.     The first thing you must do is query the database to find the numbers that
  209.  have been running "cold".  Select "Data manager section" and press <ENTER>.
  210.  If you are running a two-floppy system and have your data disk in B:  drive,
  211.  you will need to tell the program where to find your data.  Press <END> and
  212.  <ENTER> to select "Change data directory".  Type "B:" in the window and press
  213.  <ENTER>.
  214.  
  215.     Now, slide the highlight bar up to "Find the cold numbers" and press
  216.  <ENTER>.  Enter a pick-type of "6".  Watch your data fly through the I/O
  217.  window, when it stops, press any key.  You decide to use a filter sensitivity
  218.  of "7", so press the right arrow key twice then press <ENTER>.
  219.  
  220.     The large Scoreboard window appears on your screen showing you the number
  221.  of hits on each number in your file.  At the bottom of the scoreboard you find
  222.  the cold numbers.  Ex. (4,13,22,25,33,44).  Ponder the scoreboard if you like,
  223.  then press a key to get back to the Data menu.
  224.  
  225.     Slide the menu bar up to highlight "Pick 6", then press <ENTER>.  LOTTO
  226.  HELP is asking you for the high number for your game.  In our example the high
  227.  number is 54, so type 54 and press <ENTER>.
  228.  
  229.     NOTE:  The program will validate your input at this point.  Inappropriate
  230.  or irrelevant keystrokes will be rejected.  In addition, there are range
  231.  restrictions for the high pick.  The highest number you can pick is 99.  The
  232.  lowest number must be equal to, or greater than the series length.  The series
  233.  length in our example is 6.  The reason for this is that it would be
  234.  impossible to generate 6 random integers between 1 and 6, without duplication,
  235.  having less than 6 numbers to work with.
  236.  
  237.  
  238.     The next thing that happens, a window pops into the lower left corner of
  239.  your screen indicating that "Cold numbers have been detected..." asking you if
  240.  you would like the cold numbers filtered out.  Of course you would!  Press
  241.  "Y".
  242.  
  243.    LOTTO HELP generated a "card" of numbers which might have looked like this:
  244.  
  245. ^C 8 15 19 24 35 54
  246. ^C 5 23 29 31 32 49
  247. ^C 1  3 10 34 39 41
  248. ^C 1  2  5  8 15 43
  249. ^C 9 26 31 35 40 46
  250. ^C14 23 24 39 47 52
  251. ^C 7 11 17 20 42 46
  252. ^C 6 10 12 18 19 52
  253. ^C 8  9 14 29 45 47
  254. ^C13 16 18 20 27 42
  255. ^CDupes:  13       ^0
  256.  
  257.  You can use the numbers from any 8 of the rows for your 8 games.  10 rows of
  258.  numbers are always generated.
  259.  
  260.  
  261. ^CSO WHAT'S IN THE CARDS?
  262.  
  263.     You do not need to be concerned about "Dupes:  13".  The program
  264.  encountered 13 duplicate numbers, including cold numbers which were rejected,
  265.  as it created the card and zapped them on-the-spot.  There are no duplicate
  266.  numbers in the horizontal game rows.  The "Dupes:  n" feature is a holdover
  267.  from the debugging phase of the program.  It was left in place as a "toy" for
  268.  you folks who appreciate computer speed.  (Try a "Pick 6" with a high also
  269.  equal to 6!  The beeps you will hear are duplicates screaming for mercy as
  270.  your computer "does them in".)
  271.  
  272.     Back to the example.  LOTTO HELP is waiting for a decision, G, A, or Q.
  273.  Suppose you did not like the numbers displayed on the card.  Press the "G" key
  274.  to tell the program to go get a new set of numbers for the card.  "G" will
  275.  always allow you to call a new set of numbers for the current card.  Press
  276.  "G".  Now, let's assume that you like what you see (lots of hot numbers) but
  277.  you would like to see one more card.  No problem.  Press "A" to accept the
  278.  first card and advance to a new card.  This is particularly helpful to users
  279.  not owning printers.  You can accept and advance twice (3 cards).
  280.  
  281.     So, you have seen enough and are anxious to visit your town's lottery
  282.  agency to play the 8 games you just made numbers for.  Press "Q" or <ESC> to
  283.  quit LOTTO HELP and hit-the-road.  (At this point "Q" and <ESC> perform the
  284.  same function.) Oh, don't forget to bring four bucks!
  285.  
  286.  
  287. ^CFunction Keys
  288.  
  289.    First, the program displays a bar at the bottom of the screen to let you
  290.  know the current status of each feature.  A feature will disappear from the
  291.  status bar when it is not available.  The "toggle" features, F3 and F5, also
  292.  change on the status bar depending on their present state.  Six function keys
  293.  used by the program are:
  294.  
  295.       F1  The context-sensitive Help utility.
  296.  
  297.       F2  Restart at the Main menu.  Current activity is halted
  298.           and program control is returned to the opening menu.  The
  299.           program "remembers" where you were and highlights that option.
  300.  
  301.       F3  Toggles sound.  Initially, sound is turned "On", so the
  302.           initial F3 function is "Sound Off".  F3 has no effect on the
  303.           low-pitched error beep.
  304.  
  305.       F5  Toggles copy-print mode.  Initially, copy-print is turned
  306.           "Off", so the initial F4 function is "Print On".
  307.  
  308.       F9  Draws a single 3-digit number from 000 to 999 inclusive.  This
  309.           key is active from the Main Menu only.
  310.  
  311.       F10 Draws a single 4-digit number from 0000 to 9999 inclusive.
  312.           This key is active from the Main Menu only.
  313.  
  314.     o   Lots of help!  Help available from 22 places.
  315.     o   A very capable data management section.
  316.     o   A complete Bingo utility as a bonus.
  317.     o   A line of communication with MS-DOS functions.
  318.     o   A display allowing the entire contents of a data file
  319.         to be viewed on a single screen.
  320.  
  321.  
  322. ^CSMART FEATURES
  323.  
  324.     LOTTO HELP incorporates "smart" features.  Smart features are those which
  325.  automatically direct the program in some way to offer the most convenience and
  326.  minimum distraction to the user.  This program features:
  327.  
  328.           o   Context sensitivity in the F1-Help utility.
  329.           o   Automatic data file creation on any new path.
  330.           o   Automatic restoration of original path at program exit.
  331.           o   Retention of changes to alterable parameters.
  332.           o   Retention of "cold" numbers in memory for later use.
  333.           o   Auto-return to the last menu selection at F2-Restart.
  334.           o   Validation of entry made at the keyboard.
  335.           o   Error checking performed during access to Printer.
  336.           o   Sound and copy-print pre-initialized to fit the likely
  337.               choices.
  338.  
  339.  
  340. ^CCLOSING COMMENTS
  341.  
  342.     WHAT LOTTO HELP CAN DO FOR YOU:  If you play the government operated
  343.  lottery games, this program can really add a fun element to the experience.
  344.  The number selection process can be based on some form of intelligence and be
  345.  made a lot easier.
  346.     Over the long-haul, a truly random database should "flat-top".  The
  347.  occurrence of any element in the population should be nearly equal to the
  348.  average of the data.  If some kind of mechanical variability is thrown into
  349.  the number selection process, certain elements in the population are likely to
  350.  appear out-of-line.  Hot and cold elements, if you will.
  351.     If you have a significantly large database, statistically speaking, LOTTO
  352.  HELP will spot the out-of-line numbers for you.  If there is a physical reason
  353.  for the numbers to deviate from the average, the odds can be pushed in your
  354.  favor.
  355.  
  356.     WHAT LOTTO HELP CAN'T DO FOR YOU:  Simply put, LOTTO HELP can't possibly
  357.  guarantee you'll win.  Can anything?
  358.  
  359.  
  360. ^CDISCLAIMER
  361.  
  362.     It is not the intent of LOTTO HELP, its distributors, nor its author, to
  363.  encourage gambling in any form.  The software contained, herewith, was
  364.  designed purely as an instrument to aid those who participate in legal,
  365.  government agency controlled lottery games.  Further, no warranty is expressed
  366.  or implied by LOTTO HELP, its distributors, nor its author in regard to the
  367.  probability of success in government agency controlled games.  Information on
  368.  the probability of success is available at the lottery agencies.
  369.  
  370.     The distributors of LOTTO HELP and its author assume no responsibility for
  371.  loss incurred through use of this software.  This product is being distributed
  372.  "as-is" and the end-user accepts responsibility for its use.
  373.  
  374.  
  375.     To run this program outside Big Blue Disk, type ^1Lotto^0.
  376.  
  377. DISK FILES THIS PROGRAM USES:
  378. ^FLOTTO.EXE
  379. ^FPICK4.DAT
  380. ^FPICK5.DAT
  381. ^FPICK6.DAT
  382. ^FPICK7.DAT
  383. ^FPICK8.DAT
  384. ^FPICK9.DAT
  385. ^FPICK10.DAT
  386.