Hello I'm well aware there are plenty of threads around discussing different methods. Just curious and wanted to ask directly here because feel like the situation might be different. Essentially I'm trying make it so whenever someone calls out funds from the contract the amount they get varies from 0 to 100, but obviously my current method is flawed depending on now.
I've been reading into ChainLink VRF but looks like the fees could be a bit annoying. Just curious if there's any other methods anyone knows of, otherwise my other option was to lock the balance if it goes close to current block reward and users will just have to cash out more often then. It's doubtful many users will even get a balance above block reward, but I'd like to explore my options.
now
as a "seed" for randomness. You can also rely onmsg.sender
. In other words, you can use something likeabi.encodePacked(now, msg.sender)
.