M
Michael
Hi All
I have a spreadsheet for doing a raffle draw at our local
club.
I am using the code below to "Spin" the numbers.
However, as we only do about 12-14 prizes, I have noticed
a tendency for the numbers to be skewed in favour of the
lower half of the draw.
In 14 numbers, usually 10 or more of them are in the lower
half.
Is there any way to "discourage this to make the numbers a
little more balanced.
Any comments would be appreciated
Option Explicit
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As
Long)
Sub Spin()
Dim X As Integer
Dim CellA As Range, CellB As Range
Set CellA = Worksheets("Draw").Range("M7")
Set CellB = Worksheets("Draw").Range("M5")
For X = 1 To 75
Range("I8") = Int((CellA + 1 - CellB) * Rnd + CellB)
Sleep 20
Next X
End Sub
Regards
Michael
I have a spreadsheet for doing a raffle draw at our local
club.
I am using the code below to "Spin" the numbers.
However, as we only do about 12-14 prizes, I have noticed
a tendency for the numbers to be skewed in favour of the
lower half of the draw.
In 14 numbers, usually 10 or more of them are in the lower
half.
Is there any way to "discourage this to make the numbers a
little more balanced.
Any comments would be appreciated
Option Explicit
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As
Long)
Sub Spin()
Dim X As Integer
Dim CellA As Range, CellB As Range
Set CellA = Worksheets("Draw").Range("M7")
Set CellB = Worksheets("Draw").Range("M5")
For X = 1 To 75
Range("I8") = Int((CellA + 1 - CellB) * Rnd + CellB)
Sleep 20
Next X
End Sub
Regards
Michael