randomGaussian()
Closed this issue · 5 comments
I ran the sample code using randomGaussian() as well as in my own program and in both cases I received the error that randomGaussian is not defined.
I ran both the examples from the reference and another one that comes with Processing and all of them ran fine. Perhaps you are using an old version of Processing, since randomGaussian was added in version 2.0b8 (24 February 2013). Which Processing version are you using?
Amnon,
Thanks for the reply. I'm wondering if it has to do with processing.js, as I am in processing mode. I researched a little bit and found that a few others had this same issue, because when I call it in 'Java mode', it will work, but not in JavaScript mode. I u[dated yesterday just to double check, and am currently using 2.1.2.
Thanks,
Taylor
On Apr 26, 2014, at 1:29 PM, Amnon Owed notifications@github.com wrote:
I ran both the examples from the reference and another one that comes with Processing and all of them ran fine. Perhaps you are using an old version of Processing, since randomGaussian was added in version 2.0b8 (24 February 2013). Which Processing version are you using?
—
Reply to this email directly or view it on GitHub.
Well, that's definitely some relevant information. The Processing.js reference does not include randomGaussian(), so it seems Processing.js does not support this method. Perhaps this is because, as stated, the method is a relatively new addition to Processing itself.
So it appears this is not an issue related to Processing or it's reference/examples. This means you should probably turn to the sister-project Processing.js' github, if you want, to file an issue there: https://github.com/processing-js/processing-js
I guess that would be a feature request then to also add the randomGaussian() method to Processing.js.
Maybe this issue was already solved (for the next release of Processing.js), check out:
processing-js/processing-js#94
Thanks, please post processing.js issues to https://github.com/processing-js. (Also for JS mode issues: https://github.com/fjenett/javascript-mode-processing)