Re: Actual Lottery Stuff. WOW eh?
- From: "Michael Harrington" <mikharr@xxxxxxxxxxx>
- Date: Fri, 28 Jul 2006 19:16:13 +1000
Near as I can figger...there's no easy way to do that. Nobody said it was
easy. Let me know when you've successfully generated 9.8 million unique
quick picks and I'll run them through my handy cipherin' sorter thingie
that
I keep handy for just such a purpose.
Here is a Visual Basic routine to generate as many unique quick
picks as you like. This prints the first 37 to screen but you can
do the whole lot if you have time. Let me know if you need a
routine to generate the actual tickets from their index number.
Cheers Mick.
Private Sub Command1_Click()
Dim Barrel(1 To 13983816) As Long, i As Long
Dim j As Long, pick As Long, drawn As Long
For i = 1 To 13983816
Barrel(i) = i
Next i
For j = 13983816 To 13983780 Step -1 ' we can lower this as desired
drawn = Int(Rnd * j) + 1
pick = Barrel(drawn)
Barrel(drawn) = Barrel(j)
Barrel(j) = pick
Print pick
Next j
End Sub
.
- Follow-Ups:
- Re: Actual Lottery Stuff. WOW eh?
- From: Abraxas
- Re: Actual Lottery Stuff. WOW eh?
- References:
- Actual Lottery Stuff. WOW eh?
- From: Abraxas
- Re: Actual Lottery Stuff. WOW eh?
- From: Gerry
- Re: Actual Lottery Stuff. WOW eh?
- From: Abraxas
- Actual Lottery Stuff. WOW eh?
- Prev by Date: Re: Actual Lottery Stuff. WOW eh?
- Next by Date: Re: Sherry, Don't Leave (OT)
- Previous by thread: Re: Actual Lottery Stuff. WOW eh?
- Next by thread: Re: Actual Lottery Stuff. WOW eh?
- Index(es):