All depends on what language you want it in mate.
create an array to hold the previous numbers
Global $array[37]
Spin wheel for 37 spins before checking for double hit numbers
While spincounter < 37
spin/enter numbers and push to $array
WEnd
Loop through the possiblt 37 numbers searching for any that show 2 times in your array
$i = 0
Do
$j = _ArrayFindAll($array, $i)
If UBound($j) = 2
_ArrayPush($betarray, $i, 1)
EndIf
$i = $i+1
Until $i = 37
You now have a list of numbers in your $betarray to place bets on, from there just spin and tell it to check the result against that array, simples