I hope you will not kill me.
You are telling that "HASH's last N byte" 369 = 392
I don't know how to convert 369 to 392. How do I do that step by step?
Or could you tell me which converter use?
http://codebeautify.org/hex-decimal-converterMaybe you are all here programmers and are able to count in all numeral systems in head but I need to have it in decimal to compare and see how close I was with my bet.You don't need to be a programmer to understand this really.
I'm going to use this lottery as an example :
Creator: Vq9EBcb43uEfFDJYbcRDL4fk8V9mB6mkT8
Lottery address: Vw5x5cALxo3ngf2hRWjjLFN7Kr9LGSvNqf
Creator Bet: 300000VPN
Minimum Bet: 50VPN
Type: Guess a future block's hash(last N byte)
Difficulty: 3 characters
Creator bet number: "1bf"
Start block: 329060, Target block: 332063
Bet block range: 329061~332060 (3000)
Transaction id: 8b78c25ff400c2c10678a255c72317535a7298913b1afa8842f476d9c10aa046
Create time: 2015-05-29 09:43:08
Total Bonus: 300457.00000000VPN
Winner is: Vq9EBcb43uEfFDJYbcRDL4fk8V9mB6mkT8(Creator)
Bet amount: 300000.00000000VPN
Winning number: "a77"
Private key: WXys7315tNDYrYJ6jpFYDKSnzJ4ruvpQXQySoV1Y7d3rDfXFrNaX
You have two type of lottery ( the example type was "Guess a block's HASH, Last N Byte" :1. Guess a block's HASH, last N byte :
In this example, the difficulty was 3. So people have to guess the 3 last byte of the target block that was the 332063 blocks.
If you look at the 332063 block's hash, you can see that the last 3 byte of the block's hash are a77 :
getblockhash 332063

a14a68332e3565f97b89702b90930fc413a90f4ad4d6d49514a2ece99872ca77
So if your bet number wasn't a77, you loose and get your money back ( i'm not sure for the money back, but i think it's happen only if nobody win ).
2. Guess a block's HASH, last N byte's digit value :In the previous example, i'm going to use the same block and the same difficulty. So in this type of lottery you have to guess the last N byte's digit value of a block, so with a difficulty of 3, you need to find the digit value of the last 3 bytes to win.
If you look at the 332063 block's hash, you can see that the last 3 byte of the block's hash are a77. So the digit value of the last 3 bytes are :
10 + 7 + 7 = 24
Understood ?