Just re-read your earlier post and noticed the winnings are not 10 per matching number. So, you would need to do a small modification in the 'Select & Display 10 Random Numbers' section...
If the payout were 10 for 1 match, 20 for 2 matches and so on, you could use a formula. However as this isn't the case, this would be best done using an array.
Dim PayoutMultiplier(10)
PayoutMultiplier(1) = 1
PayoutMultiplier(2) = 5
PayoutMultiplier(3) = 10
...and so on.
In effect, the value stored in element 1 is the number to multiply 10 by for one match. Element 2 is what to multiply 10 by for two matches and so on. Just set them up at the start.
New version:
Set Display Mode 800,600,16
Hide Mouse: CLS 0
Randomize Timer()
Set Text Font "Tahoma"
Set Text Size 32
Dim PayoutMultiplier(10)
PayoutMultiplier(1) = 1
PayoutMultiplier(2) = 5
PayoutMultiplier(3) = 10
PayoutMultiplier(4) = 30
PayoutMultiplier(5) = 50
PayoutMultiplier(6) = 100
PayoutMultiplier(7) = 150
PayoutMultiplier(8) = 200
PayoutMultiplier(9) = 400
PayoutMultiplier(10) = 1000
NumbersInDraw = 10: Rem <<< Set to smaller number to test (better chances of winning)
Input "Please Enter Your Chosen Number (1-";Str$(NumbersInDraw);"): ";User
Ink RGB(0,255,0),0
Rem Select & Display 10 Random Numbers
Display$ = ""
NumCorrect = 0
For N=1 To 10
ComputerNumber=Rnd(NumbersInDraw-1)+1
If ComputerNumber = User Then Inc NumCorrect: Rem << This counts number of correct matches
Display$ = Display$+Str$(ComputerNumber)+" "
Rem play sound 1
CLS: Center Text 400,235,Display$
Sleep 1000
Next N
Rem Display End Message
Ink RGB(255,255,25),0: Set Text Size 16
If NumCorrect > 0
Center Text 400,520,"Well Done - You Had "+Str$(NumCorrect)+" Matches!"
Center Text 400,540,"You Win "+Str$(10*PayoutMultiplier(NumCorrect))+"$"
Else
Center Text 400,520,"Sorry - Your Number ["+Str$(User)+"] Had No Matches!"
Endif
Wait Key
I've also added a NumbersInDraw variable for testing purposes. Set this to say 10 to increase the odds of winning and check the payout.
TDK_Man