Excuse me, but how is Random Number Generator of SatoshiDice.com works? What is maximum number? 64001?
iirc, the random number generation of satoshidice is done by taking the trailing few numbers of a hash of your transaction which sent the bet and plus the secret number.
The lucky number used to determine the winner of games is simple. It is simply the first bytes of hmac_sha512(secert,txid:out_idx). That would be the secret string as the key and the transaction ID of your bet transaction as the data.