     Random Number Generator

	Rangen.exe is a program designed to be used in a DOS environment although it seems to work fine under Windows 3.0 and 3.1. I've included an icon for it in the file rangen.ico for anyone who might want to install it as an item in one of their Window groups. 
     
     Rangen.exe presents a user specified number of integers drawn randomly without replacement from a user specified sequential integer pool. The user can specify both the lowest integer (usually 1) and the highest integer (max. = 999) in the set of sequential integers in the draw pool. The user can also specify the number of integers drawn from the pool (cannot exceed pool size, pool size = max. - min. + 1) and the number of times a random set is drawn (max. = 100). The resulting output can be displayed on screen, sent directly to a printer, or written to a user specified file. Note that if more than 100 sequences are required the program can be run again however if the output is specified to a file you must give the file a new name to prevent it from overwriting the files specified in previous runnings. Rangen will warn you before overwriting any file.

Example 1. 
     Suppose you want to randomly present 15 stimuli to 24 subjects. Number your stimuli 1 to 15. Start rangen.exe and answer the following prompts: 
     
          lowest number in range?       answer  1 
          highest number in range?      answer  15  
          number of sequences?          answer  24 
          All numbers chosen?           answer  Y 
          Output to etc.?               answer  S   
 
           This results in 24 random sequences (separated by a blank line) of all members of the number set 1 to 15. Simply present the first subject with the stimuli in the order specified by the first sequence, the second subject with the second sequence etc. Note that if you were to really want to do this, it would probably be better to send the output to a printer or alternatively to a specified file which could be opened with any editor that can handle ASCII and then printed or whatever. In either case you would have a permanent record of the sequences rather than just a screen image. 
 
Example 2. 
     You're feeling particularly lucky or foolish (depending on your perspective) and decide you want to play Lotto 649 but for whatever reason you don't want to pick the numbers yourself. This program will do it for you. The task is simply to pick 6 numbers from the set of numbers 1 to 49. Start rangen.exe and answer the following prompts:         

        lowest number in range?       answer  1 
        highest number in range?      answer  49  
        number of sequences?          answer  3 
                (you're buying 3 tickets)  
        All numbers chosen?           answer  N 
        How many chosen?              answer  6 
        Output to etc.?               answer  S   
          
          This will output to the screen 3 (separated by a blank line) sequences of 6 integers drawn randomly from the pool of 1 to 49 without replacement. Play the numbers, collect your winnings and send me a cut.
