nature-of-code / noc-examples-processing

Repository for example code from The Nature of Code book
MIT License
2.56k stars 951 forks source link

Random must be imported (2.0.3, Linux) #37

Open hamoid opened 10 years ago

hamoid commented 10 years ago

I don't know if it's something unique to my system, but I need to "import java.util.Random;" to have Random available. Otherwise it does not compile. For example in https://github.com/shiffman/The-Nature-of-Code-Examples/blob/master/Processing/introduction/Gaussian2/Gaussian2.pde

shiffman commented 10 years ago

No, this is correct with Processing 2.0. Better still, I need to fix these to use randomGaussian()

http://processing.org/reference/randomGaussian_.html

hamoid commented 10 years ago

Can I help you change to randomGaussian() ?

shiffman commented 10 years ago

sure i'm happy to take pull requests (https://help.github.com/categories/63/articles)