• ### [nrandom] Generates normally distributed random numbers (vanilla)

This abstraction generates normally distributed random numbers within a given range. It is possible to set the variance of the distribution via a value between 0 and 100.

nrandom.zip

The abstraction makes use of [array random].

This example shows the normal distribution in the first array that is used to generate accumulated random numbers in the second array:

• Posts 13 | Views 777
• @ingox ye, but why would you do that to a computer?

• @4ZZ4 That was a choice for the user interface, so was doing this for the user. By the way, the value goes into [expr] that uses decimal numbers not binary, so using base 2 powers would be superficial anyway.

• @ingox WHAT!?? expr is using decimal!?? you must have missed something, where did you get that info, no sane real programmer whould ever write a programming language with decimal.

• @4ZZ4 no sane real programmer would ever use pd...

• @solipp oof

• @4ZZ4 Yes, maybe i have missed something, but when i put 8 and 4 into [expr \$f1 + \$f2] i get 12 as the result, which from my humble point of view is a decimal representation of 1100. But maybe you are talking about something else.

• Real programmers https://xkcd.com/378/

• Haha, thats a funny discussion If i am not wrong most of the PD objects (also the [expr] family) make use of the decimal numeral system. Though there are some objects for bit twiddling, and with [expr] you can do some bitwise operations too. Even with Python and C++ I use decimal numbers and feel quite comfortable with it (but I am not a sane programmer ). The programming languages are so nice and translate it for the computer. So the computer feels comfortable too

• @solipp LOL nice

Posts 13 | Views 777
Internal error.

Oops! Looks like something went wrong!