O'Reilly logo
  • Joseph Simpson thinks this is interesting:

randomBinomial to generate the output rotation. This is a handy random number function that isn’t common in the standard libraries of programming languages. It returns a random number between −1 and 1, where values around zero are more likely. It can be simply created as: 1 def randomBinomial(): 2 return random() - random() where random returns a random number from 0 to 1.


Cover of Artificial Intelligence for Games, 2nd Edition


That is handy