0 to 16777215
I did a test, and checked the first 3 winners: your math checks out
Thank you, very sharp. I made all your suggestions, already in production.
About this nonce alternative, I will take a look later.
Can you add a "unique URL" and "future block" feature? Example: If I enter 4 usernames, I'd like to be able to pick a block in the future. That should give me an URL that I can share here, so participants can follow the giveaway.
Even if the block isn't in the future, a unique URL would be really cool to share the results.
I hade to use some cryptography to accomplish this, but it was easier than I expected.
I saved all the saved data in a variable and encrypted it using AES.
Then I saved this encrypted data in a unique URL.
As it is not sensible data, I just added the private keys in the script file.
When you load it, data decrypted and will fill out automatically.
Easily shareable!
Take a look:
https://bitcoindata.science/giveaway-manager/?U2FsdGVkX19E08GaMJDY1QNCMHlxQ4BoXO/TAEUSso0BHeEzziPww8wbM4/X+GHSUiyN6SPx0ilvAwu+//A7plknuyGUx/JgM/n8+qEoXeQzEisCo5zzepIskxTJefviVPRZwtFw6sUujNaJmlryVkWJ5t6eicz+NAemMECso3+8BS5hJ9k1qiZi/OtbyZFV0KR3BXxGKcZab+zKKDitPw==
Done!!!
Tell me if you see any more bugs !