I am looking to transform a random number into a normal distribution between 1-20. I have been looking to implement the box muller transformation to do so. But can someone point me an easy way to do so using solidity?

  • If the random number itself is in normal distribution, then you can use x % 20 + 1. Nov 28 '20 at 9:10
  • @goodvibration No the random number is in a uniform distribution. Nov 28 '20 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.