In Denny's Lotto, McKinnon has the following code:
[0x60] (SHA3 0x20 0x40) ;Random lottery
[0x80] (MOD @0x2)
However, in Serpent, sha3(v) has only 1 argument, not 2. and when I try the following code, I get a in MinkChalk type error because sha3 apparently doesn't return an integer:
random_number = sha3(block.prevhash) % 10
Does anyone know the correct way to use sha3 to make a random number in Serpent?