Results 1 to 19 of 19

Thread: [RESOLVED] Probability 1-20 program

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    35

    Resolved [RESOLVED] Probability 1-20 program



    VB Code:
    1. Public Class Form1
    2.  
    3.     'The checkList array is used to check off which numbers
    4.     'have already been randomly picked.
    5.     Private checkList(20) As Boolean
    6.     'The counter is used to show how many times it took
    7.     'for all numbers to be randomly picked.
    8.     Private counter As Integer = 0
    9.     'The track variable tells me when I should end the while....loop
    10.     'I could have just used a long if or select case, but it just
    11.     'seems easier this way.
    12.     Private track As Integer = 0
    13.     'This value of this variable (true|false) determines
    14.     'whether the While....Loop continues running or not.
    15.     Private continueLoop As Boolean = True
    16.  
    17.     'I need these variables to access the Random class
    18.     'so the program will generate a random number.
    19.     Dim generator As New Random
    20.     Dim randomValue As Integer
    21.  
    22.     Private Sub cmdRun_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRun.Click
    23.  
    24.         Dim i As Integer = 0
    25.         'This resets the checkList array.
    26.         For i = 0 To i < 19 Step 1
    27.             checkList(i) = False
    28.         Next i
    29.         'These three lines are just resetting the variables
    30.         'in case the program ran once before.
    31.         counter = 0
    32.         track = 0
    33.         continueLoop = True
    34.  
    35.         'The loop starts and will end when the continueLoop is set to false.
    36.         While (continueLoop)
    37.             'When the track variable reaches 19 in the array index (0-19)
    38.             'for a total of 20 indexes or more simply put 20 numbers, then
    39.             'the continueLoop will be set to false.  UPDATE:  I seen a
    40.             'mistake on my part.  The counter variable will get incremented
    41.             'by one, so the continueLoop variable is pointless, but since
    42.             'it is in there, then I'll leave it in.  I used Exit While
    43.             'so the variable counter will not get incremented.
    44.             If (track = 19) Then
    45.                 continueLoop = False
    46.                 Exit While
    47.             End If
    48.             'This static sub procedure is supposed to sync the generator variable
    49.             'with the cpu clock to help the program generate better random values,
    50.             'instead of maybe some sort of random pattern.
    51.             Randomize()
    52.             'randomValue holds a random value of (1-20).
    53.             randomValue = generator.Next(1, 20)
    54.             'Depending on what number get randomly selected, is what
    55.             'case or option will get selected.
    56.             Select Case randomValue
    57.                 Case 1
    58.                     If (checkList(0) = True) Then
    59.                         'has already been populated
    60.                         track += 1
    61.                     Else
    62.                         checkList(0) = True
    63.                     End If
    64.                 Case 2
    65.                     If (checkList(1) = True) Then
    66.                         'has already been populated
    67.                         track += 1
    68.                     Else
    69.                         checkList(1) = True
    70.                     End If
    71.                 Case 3
    72.                     If (checkList(2) = True) Then
    73.                         'has already been populated
    74.                         track += 1
    75.                     Else
    76.                         checkList(2) = True
    77.                     End If
    78.                 Case 4
    79.                     If (checkList(3) = True) Then
    80.                         'has already been populated
    81.                         track += 1
    82.                     Else
    83.                         checkList(3) = True
    84.                     End If
    85.                 Case 5
    86.                     If (checkList(4) = True) Then
    87.                         'has already been populated
    88.                         track += 1
    89.                     Else
    90.                         checkList(4) = True
    91.                     End If
    92.                 Case 6
    93.                     If (checkList(5) = True) Then
    94.                         'has already been populated
    95.                         track += 1
    96.                     Else
    97.                         checkList(5) = True
    98.                     End If
    99.                 Case 7
    100.                     If (checkList(6) = True) Then
    101.                         'has already been populated
    102.                         track += 1
    103.                     Else
    104.                         checkList(6) = True
    105.                     End If
    106.                 Case 8
    107.                     If (checkList(7) = True) Then
    108.                         'has already been populated
    109.                         track += 1
    110.                     Else
    111.                         checkList(7) = True
    112.                     End If
    113.                 Case 9
    114.                     If (checkList(8) = True) Then
    115.                         'has already been populated
    116.                         track += 1
    117.                     Else
    118.                         checkList(8) = True
    119.                     End If
    120.                 Case 10
    121.                     If (checkList(9) = True) Then
    122.                         'has already been populated
    123.                         track += 1
    124.                     Else
    125.                         checkList(9) = True
    126.                     End If
    127.                 Case 11
    128.                     If (checkList(10) = True) Then
    129.                         'has already been populated
    130.                         track += 1
    131.                     Else
    132.                         checkList(10) = True
    133.                     End If
    134.                 Case 12
    135.                     If (checkList(11) = True) Then
    136.                         'has already been populated
    137.                         track += 1
    138.                     Else
    139.                         checkList(11) = True
    140.                     End If
    141.                 Case 13
    142.                     If (checkList(12) = True) Then
    143.                         'has already been populated
    144.                         track += 1
    145.                     Else
    146.                         checkList(12) = True
    147.                     End If
    148.                 Case 14
    149.                     If (checkList(13) = True) Then
    150.                         'has already been populated
    151.                         track += 1
    152.                     Else
    153.                         checkList(13) = True
    154.                     End If
    155.                 Case 15
    156.                     If (checkList(14) = True) Then
    157.                         'has already been populated
    158.                         track += 1
    159.                     Else
    160.                         checkList(14) = True
    161.                     End If
    162.                 Case 16
    163.                     If (checkList(15) = True) Then
    164.                         'has already been populated
    165.                         track += 1
    166.                     Else
    167.                         checkList(15) = True
    168.                     End If
    169.                 Case 17
    170.                     If (checkList(16) = True) Then
    171.                         'has already been populated
    172.                         track += 1
    173.                     Else
    174.                         checkList(16) = True
    175.                     End If
    176.                 Case 18
    177.                     If (checkList(17) = True) Then
    178.                         'has already been populated
    179.                         track += 1
    180.                     Else
    181.                         checkList(17) = True
    182.                     End If
    183.                 Case 19
    184.                     If (checkList(18) = True) Then
    185.                         'has already been populated
    186.                         track += 1
    187.                     Else
    188.                         checkList(18) = True
    189.                     End If
    190.                 Case 20
    191.                     If (checkList(19) = True) Then
    192.                         'has already been populated
    193.                         track += 1
    194.                     Else
    195.                         checkList(19) = True
    196.                     End If
    197.             End Select
    198.  
    199.             counter = counter + 1
    200.         End While
    201.  
    202.         txtNumOfChances.Text = counter
    203.         txtProbability.Text = 20 / counter
    204.     End Sub
    205. End Class

    I'm not sure about this program. It seems to work, but every time I run the program to see if it get different results, it doesn't. I don't see where the mistake is at. The program does work, but with the help of the static sub procedure function Randomize(), the program still don't seem to be generating new patterns. I understand that if I close the program down, that the same pattern may get used with every executing of the program, but I'm re-running through the command button on my form.

    Anyway, maybe someone's eyes will detect what is happening and can tell me what that is by posting.

    Thanks!
    Last edited by kevin_10987; Apr 6th, 2010 at 07:49 PM.

  2. #2
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Probability 1-20 program

    First of all, Randomize is used with the 'old' Rnd function, which you are not using. The Random class, which you are using, does not need it, so it is not doing anything.

    The Random class bases its random numbers on a seed. You can supply the seed yourself, when creating a New Random object, but you are not. Because you are not, the class will use the system time as seed by default (this is a good thing!). So, you should see random results. If you run the program twice, the time will be different each run, and 'generator' should return a different sequence of numbers.

    I'm not sure how you're seeing that it's not random, nor what you're doing exactly... Can you explain a bit more?

    Finally, the whole Select Case block is redundant. You are doing the same thing in each case, except that you are using a different index to the checkList array (well, I think it's an array, you didn't specify).
    So, you can replace the whole select case block with this:
    Code:
    If (checkList(randomValue - 1) = True) Then
                            'has already been populated
                            track += 1
                        Else
                            checkList(randomValue - 1) = True
                        End If

  3. #3
    Hyperactive Member The Fire Snake's Avatar
    Join Date
    Sep 2009
    Location
    USA
    Posts
    401

    Re: Probability 1-20 program

    I think the Randomize() method you are calling is screwing something up. I don't think you need to call that in VB.Net. I wrote a little test VB program to generate random numbers for your problem and it works fine. Just adapt it for your use. Check it out:

    vb Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.    Dim Rnd As New Random()
    3.  
    4.    ' Inclusive lower bound but exclusive upper bound
    5.    Dim RandomNumber As Integer = Rnd.Next(1, 21)
    6.  
    7.    MessageBox.Show(RandomNumber.ToString())
    8. End Sub
    Remember to click on the scales to the left and rep me if I helped

  4. #4
    Hyperactive Member The Fire Snake's Avatar
    Join Date
    Sep 2009
    Location
    USA
    Posts
    401

    Re: Probability 1-20 program

    Quote Originally Posted by NickThissen View Post
    First of all, Randomize is used with the 'old' Rnd function, which you are not using.
    He/She is using it here:

    vb Code:
    1. 'The loop starts and will end when the continueLoop is set to false.
    2.         While (continueLoop)
    3.             'When the track variable reaches 19 in the array index (0-19)
    4.             'for a total of 20 indexes or more simply put 20 numbers, then
    5.             'the continueLoop will be set to false.  UPDATE:  I seen a
    6.             'mistake on my part.  The counter variable will get incremented
    7.             'by one, so the continueLoop variable is pointless, but since
    8.             'it is in there, then I'll leave it in.  I used Exit While
    9.             'so the variable counter will not get incremented.
    10.             If (track = 19) Then
    11.                 continueLoop = False
    12.                 Exit While
    13.             End If
    14.             'This static sub procedure is supposed to sync the generator variable
    15.             'with the cpu clock to help the program generate better random values,
    16.             'instead of maybe some sort of random pattern.
    17.             Randomize()   ' <-------------------------------------------------------- ** HERE **
    Remember to click on the scales to the left and rep me if I helped

  5. #5
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: Probability 1-20 program

    Yeah, but they are NOT using Rnd, which required Randomize. What Nick was saying was that Randomize is not needed for the Random object, which they are using. Still, I wouldn't expect Randomize to cause any harm. I would expect it to have no impact at all, but perhaps not. Taking it out would certainly be the first step.

    The most common answer for this type of problem is that people put the declaration of the Random object inside a sub (as FireSnake did, but that case is actually almost certainly safe) which then gets called many times in a tight loop. Since you declared the Random object outside of the sub at form scope, you are doing it correctly. You should be getting a different random sequence every time you click RUN, yet you state that you are not. It would be very interesting to me if removing the Randomize statement fixed the problem, but I suspect it will not.
    My usual boring signature: Nothing

  6. #6
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Probability 1-20 program

    Yes, Shaggy is right. I meant the OP wasn't using the Rnd function, so there was no need for the Randomize function.

    I also would be very surprised if the Randomize call was doing the harm. If it has any effect at all, I would expect it to randomize the output even more (so that, perhaps, the Random class uses the old Rnd function behind the scenes anyway... I doubt it). I would certainly not expect it to suddenly make the Random object use the same seed over and over.
    Still, doesn't hurt to try, and since it isn't doing any good, just take it out.

  7. #7

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    35

    Re: Probability 1-20 program

    Thanks everyone for your great response. I also appreciate the comment by Nick.... on showing me why the Select....Case that I was using was redundant. I don't know why I was trying to make it more complicated than it had to be but the simple if....then worked great.

    I'm going to post the output that I am getting by running the program a few times.

    Code:
    Number of chances:  33
    Probability (&#37;):  0.60606060606
    
    Number of chances:  24
    Probability (%):  0.833333333333333
    
    Number of chances:  19
    Probability (%):  1.05263157894737
    
    Number of chances:  38
    Probability (%):  0.526315789473684
    
    Number of chances:  19
    Probability (%):  1.05263157894737
    
    Number of chances:  36
    Probability (%):  0.555555555555556
    
    Number of chances:  20
    Probability (%):  1
    
    Number of chances:  19
    Probability (%):  1.05263157894737
    
    Number of chances:  34
    Probability (%):  0.588235294117647
    
    Number of chances:  23
    Probability (%):  0.869565217391304
    
    Number of chances:  19
    Probability (%):  1.05263157894737
    
    Number of chances:  34
    Probability (%):  0.588235294117647
    
    Number of chances:  22
    Probability (%):  0.909090909090909
    
    Number of chances:  33
    Probability (%):  0.60606060606
    Now, I just want to clarify something. These are different numbers, but it seems so close that it just seems too close. It looks like the more numbers between 1-20 would get picked repeatedly. The thing that I wanted to clarify is, after I click my run command button three times, the program doesn't seem to want to run through the loop again, because it returns the same number of chances (usually, 20 or 19, which the probability being either 1 or 1.05XXXXXXX. It just generates the same value over and over like 20 and won't change until I terminate the program and click my run command button again. But after three times of clicking my command button; I must terminate the program again and run the program again to successfully run the program. It seems like after three runs, something is cached somewhere that is causing the program to behave improperly. Maybe there is something wrong with my installed copy of VB 2008 EE. With Microsoft stuff, one doesn't know whether it's their code or Microsoft's code. Last statement is a joke. Microsoft is cool.

    I just wanted to say thanks for informing me that Randomize() is used with Rnd and not with an instance of the Random class. I used to use Rnd, and was informed to use Randomize(), so I just assumed that Randomize() still was needed. Thanks for correcting me on this.
    Last edited by kevin_10987; Apr 6th, 2010 at 07:21 PM.

  8. #8

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    35

    Re: Probability 1-20 program

    I have another question.

    VB Code:
    1. ' Inclusive lower bound but exclusive upper bound
    2. Dim RandomNumber As Integer = Rnd.Next(1, 21)

    When defining the boundaries to include for the Random class to generate numbers; does one have to include 1 more on the upper end? So if I want to include all numbers from 1-20, then I must write the lower boundary, upper boundary like (1,21) like "The Fire Snake" did.

    By the way, sorry for not using the HighLight option. I haven't been on here for a while and forgot how to use it. When I clicked on VBCode, it said, please enter the option. I was like, what option, then it dawned on me, oh, type VB.

  9. #9

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    35

    Re: Probability 1-20 program

    I see a problem with my code. Why didn't I see it?!

    VB Code:
    1. If (checkList(randomValue - 1) = True) Then
    2. 'has already been populated
    3. track += 1
    4. Else
    5. checkList(randomValue - 1) = True
    6. End If

    The variable track is getting incremented every time the instance of the Random class generates a number. So if it generates the number two, four times in a row, then the variable track is already up to 4. That is not what I want. I want the counter variable to be equal to four, but not the variable track.

    I just thought of something. Instead of the variable track; I could do something like this.

    VB Code:
    1. Dim i as Integer = 0   'I know, I already used i somewhere in the program.  Well, I think.
    2. Dim bool1 as Boolean = True
    3. For (i=0 to i<19 step 1)
    4. if (checkList(i) = true) Then
    5.     bool1 = True
    6. else
    7.     bool1 = False
    8. Next i
    9. If (bool1) then
    10. 'end loop and show output
    11. else
    12. 'keep loop going
    13. End If
    Last edited by kevin_10987; Apr 6th, 2010 at 09:18 PM.

  10. #10
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Probability 1-20 program

    So, does that work? It's still not clear to me what you're doing.

    Are you using that checkList stuff so that your program never uses the same random number twice? In other words, are you looking for non-repeating random numbers? That can be done much easier. You'd fill an List(Of Integer) with the numbers you need to choose from (in your case, 1 to 20). Then, you generate a random index in that list (so, between 0 and 19). You extract the number on that index from the list and use that as your random number. Then, you remove the number from the list, so you cannot choose it again. The second time you generate a number, you generate one between 0 and 18 (because there's now only 19 integers in the list). In general, you select a number between 0 and list.Count - 1. Because you remove each selected number from the list, you can never get the same number twice.

  11. #11

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    35

    Re: Probability 1-20 program

    Thanks everyone and thanks NickThissen for your suggestion to completely re-write it. My logic was pretty messed up. Here is my final solution and the output is what I wanted.

    The original way I wrote the code didn't allow the program to run but 19 times, so the program would have never been accurate.

    VB Code:
    1. Public Class Form1
    2.  
    3.     'The counter is used to show how many times it took
    4.     'for all numbers to be randomly picked.
    5.     Private counter As Integer = 0
    6.  
    7.     Private listOfNumbers As New ArrayList
    8.  
    9.     'I need these variables to access the Random class
    10.     'so the program will generate a random number.
    11.     Dim generator As New Random
    12.     Dim randomValue As Integer
    13.  
    14.     Private Sub cmdRun_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRun.Click
    15.  
    16.         'These three lines are just resetting the variables
    17.         'in case the program ran once before.
    18.         counter = 0
    19.         listOfNumbers.Clear()
    20.         For i As Integer = 1 To 20
    21.             'populates the arraylist with 1-20
    22.             listOfNumbers.Add(i)
    23.         Next i
    24.  
    25.         'The loop starts
    26.         While (True)
    27.             'randomValue holds a random value of (1-20).
    28.             randomValue = generator.Next(1, 21)
    29.             For i As Integer = 0 To listOfNumbers.Count - 1
    30.                 If listOfNumbers.Count < 2 Then
    31.                     Exit While
    32.                 End If
    33.                 If listOfNumbers.Item(i).Equals(randomValue) Then
    34.                     listOfNumbers.RemoveAt(i)
    35.                     Exit For
    36.                 End If
    37.                 ToolStripProgressBar1.Value = CType((20 / _
    38.                                     listOfNumbers.Count) * 10, Integer)
    39.                 ToolStripStatusLabel1.Text = CType((20 / _
    40.                                     listOfNumbers.Count) * 10, Integer)
    41.             Next i
    42.  
    43.             counter = counter + 1
    44.         End While
    45.  
    46.         txtNumOfChances.Text = counter
    47.         txtProbability.Text = 20 / counter
    48.     End Sub
    49. End Class

    I added the progress bar to let me know whether the program was working or was stuck in some sort of infinite loop due to the looping through the arraylist.

    Thanks all for helping me make this little project run and for pointing out suggestions that really cleaned up my code. It was a mess at the beginning.
    Last edited by kevin_10987; Apr 7th, 2010 at 01:31 PM.

  12. #12
    Hyperactive Member The Fire Snake's Avatar
    Join Date
    Sep 2009
    Location
    USA
    Posts
    401

    Re: Probability 1-20 program

    You have the correct random numbers being generated with 1,20? The documentation I have read says that the 20 is exclusive, meaning it won't generate a random number of 20.
    Remember to click on the scales to the left and rep me if I helped

  13. #13
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Probability 1-20 program

    One final suggestion: you can use a List(Of Integer) instead of an ArrayList. The advantage is that a List(Of Integer) is what we call 'type-safe'. It can only contain Integers, so it also returns Integers if you get an item from it. An ArrayList contains Objects, so if you want to use an item in it, you'd need to cast it to an Integer explicitly. You got around that by using the Equals function, but it would be easier if you used a List(Of Integer). Then, line 33 in your above code would read
    Code:
    If listOfNumbers.Item(i) = randomValue Then
    You only need to change the declaration in line 7, from ArrayList to List(Of Integer). You add/remove items in the same way, so that code can remain the same.

  14. #14

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    35

    Re: Probability 1-20 program

    I didn't noticed the 1,20 in the generator.next parameters, but for some reason it was working. I guess I'm going to have to reduce the size of the arraylist and only generate numbers from 1-3 or something just to see if the program is working correctly.

    I just read what you are saying about the parameters in the next method about how the maximum number is not included. I did change it though. The numbers seems accurate now and isn't generating any kind of error.

    The best someone could draw 20 numbers out of a hat (must put the number back in the hat) and also you must check off the number that you drew out. The game doesn't end until all numbers have been crossed off. Anyway, with luck, it would take 33 tries. The worst scenario is around 100 tries.

    I just thought this would be a neat little program to help me practice my visual basic skills.

    If a person had 5000 numbers to randomly choose from, then it would take around 10,000 tries, at best, to cross off all 20 numbers. The program shows it shouldn't take more than 20,000 tries to cross off all 20 numbers.

  15. #15

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    35

    Re: Probability 1-20 program

    Quote Originally Posted by NickThissen View Post
    One final suggestion: you can use a List(Of Integer) instead of an ArrayList. The advantage is that a List(Of Integer) is what we call 'type-safe'. It can only contain Integers, so it also returns Integers if you get an item from it. An ArrayList contains Objects, so if you want to use an item in it, you'd need to cast it to an Integer explicitly. You got around that by using the Equals function, but it would be easier if you used a List(Of Integer). Then, line 33 in your above code would read
    Code:
    If listOfNumbers.Item(i) = randomValue Then
    You only need to change the declaration in line 7, from ArrayList to List(Of Integer). You add/remove items in the same way, so that code can remain the same.
    Thanks for that suggestion "Nick" about the List (Of Integer). That is pretty cool! I don't remember reading that in any book of mine.

  16. #16
    Hyperactive Member The Fire Snake's Avatar
    Join Date
    Sep 2009
    Location
    USA
    Posts
    401

    Re: Probability 1-20 program

    Quote Originally Posted by kevin_10987 View Post
    Thanks for that suggestion "Nick" about the List (Of Integer). That is pretty cool! I don't remember reading that in any book of mine.
    It is a generic collection. I love it. I use List(Of ) all the time and they are very helpful.
    Remember to click on the scales to the left and rep me if I helped

  17. #17
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: [RESOLVED] Probability 1-20 program

    Generics only showed up in 2005, so books that were written, or in the works, around the time that 2005 came out, wouldn't mention the generics. However, there are lots more of them than just the List. There are also dictionaries, queues, stacks, and several others. They are good to know about, because type safety reduces bugs and code.
    My usual boring signature: Nothing

  18. #18
    Fanatic Member Megalith's Avatar
    Join Date
    Oct 2006
    Location
    Secret location in the UK
    Posts
    879

    Re: [RESOLVED] Probability 1-20 program

    not meaning to put out the bonfire but this can be solved with a formula without doing what is like a monte carlo analysis. monte carlo is not the best algorithm for calculating probability, over numbers 1-50 or so it isn't too bad but this is a logarithmic algorithm and could cause major problems if you reused the code in something else that wanted to know how many times to draw a million numbers from a hat for example.
    If debugging is the process of removing bugs, then programming must be the process of putting them in.

  19. #19

    Thread Starter
    Member
    Join Date
    Jun 2007
    Posts
    35

    Re: [RESOLVED] Probability 1-20 program

    Quote Originally Posted by Megalith View Post
    not meaning to put out the bonfire but this can be solved with a formula without doing what is like a monte carlo analysis. monte carlo is not the best algorithm for calculating probability, over numbers 1-50 or so it isn't too bad but this is a logarithmic algorithm and could cause major problems if you reused the code in something else that wanted to know how many times to draw a million numbers from a hat for example.
    I understand what you are saying about how a number with 7 digits would halt the execution of this program, but using a mathematical formula wouldn't give me the solutions that I was looking for. I was looking for a program that would show how many tries it would take for any "Joe" that wants to try and see if he/she can get all twenty numbers in 20 tries. Of course, that is a perfect score.

    If I used a formula, the random aspect of the problem wouldn't be there, so the program wouldn't feel like "Donnie Baker", "Floyd the Truck Driver", "Jumbo the Elephant", Kenny Tarmac", "Ernie Furglar", "Randy", "Herm Johnson", "Bob Bile", "Hadji", "Ian St. Ian", "Dick Metcalf", "Doc Whiskey", "Dick Mango", or anybody else that wanted to play the game.

    By the way, what would this formula look like as a logarithmic equation? Maybe I'm wrong and this logarithmic equation would show how many times it would take each person to draw twenty numbers. But each time a person steps up to play, then the results must be different, because no one is going to draw all twenty numbers every time in sixty-seven tries.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width