New to Rust? Grab our free Rust for Beginners eBook Get it free →
Generate a Random Number in Solidity Safely

Solidity can hash block data into a bounded number, but that result is not suitable for a raffle, game reward, or any outcome with value, and I compiled the small contract below with solc 0.8.36 during this refresh to show…









