• Lixen@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    For those that want to have an actual go at it: when deploying it with hardhat for example, you can pass in Math.floor(Math.random()*1000) as the constructor argument in the deploy script, and then see if you can derive the number on the first guess.

    • tracyspcyOPM
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      The formula will return a specific result of uint256 type which will be used in constructor on deployment, right? 😉