{"version":"1.0","type":"rich","title":"Pseudorandom and -Gaussian","description":"An extension to https:\/\/turtletoy.net\/turtle\/a2274fd1fe\r\n\r\nI wanted to see if the random generator I use in my Turtles (by David Bau) has similar properties as the one Reinder uses.\r\n\r\nWhen it seemed to have those properties I thought use them to extend the 'Random wrapper' I use to generate values that form a normal (Gaussian) distributed collection of values instead of a 'random collection'.\r\n\r\nI used the Box-Muller transform to get from pseudorandom numbers to normal distributed values from 0 to 1, by code at the first listed URL below. There's also a (faster) method listed that approximates normal distributed values (less precise) using the central limit theorem (using ctrlLimSampleSize).\r\n\r\nFor completeness I included the random number generator by Randall Munroe (last URL).\r\n\r\nI also added a way to skew values from any generator method.\r\n\r\nhttps:\/\/stackoverflow.com\/questions\/25582882\/javascript-math-random-normal-distribution-gaussian-bell-curve\r\nhttps:\/\/en.wikipedia.org\/wiki\/Box%E2%80%93Muller_transform\r\nhttps:\/\/en.wikipedia.org\/wiki\/Central_limit_theorem\r\nhttp:\/\/davidbau.com\/archives\/2010\/01\/30\/random_seeds_coded_hints_and_quintillions.html\r\nhttps:\/\/www.xkcd.com\/221\/","author_name":"Jurgen","author_url":"https:\/\/turtletoy.net\/user\/Jurgen","provider_name":"Turtletoy","provider_url":"https:\/\/turtletoy.net\/","license":{"fullName":"The MIT License","shortName":"MIT","url":"https:\/\/opensource.org\/licenses\/MIT"},"thumbnail_url":"https:\/\/turtletoy.net\/thumbnail\/dcd0262bc5.jpg","thumbnail_width":512,"thumbnail_height":512,"html":"<iframe src=\"https:\/\/turtletoy.net\/embed\/dcd0262bc5\" width=\"1025px\" height=\"554px\" style=\"max-width: 100%; border: 0\" sandbox=\"allow-scripts allow-top-navigation allow-top-navigation-by-user-activation allow-forms allow-popups allow-same-origin\"><\/iframe>","width":1025,"height":554}