A bell-curve random distribution function?

by gtoal
  scripts
  sprites
See inside
Instructions

https://scratch.mit.edu/discuss/topic/221903/

I thought I had come up with an approximate normal-distribution substitute for Scratch's linear random but when I added a frequency graph to plot the results it became clear that it was NOT a bell-curve :-( I've asked in the AT forum for better suggestions. Preferably something that doesn't do an arbitrary number of rand() calls per result.

HERE'S THE BEST SOLUTION SO FAR:
https://scratch.mit.edu/projects/126302896/ (Layzej's)

Notes and Credits

My attempt took two factors in the range of 0..sqrt(high) and multiplied them together. It turned out to be two back-to-back sqrt() curves rather than a normal curve.

It's quite surprising that Scratch has been around this long without a gaussian distribution random function available, They're tremendously useful in all sorts of applications.

Shared: 16 Oct 2016 Modified: 16 Nov 2016
Favorite this project 3
Love this project 6
Total views 228
View the remix tree  9
  
More projects by gtoal