Specify stimulus parameters according to normal distribution in loop

I think when I did this I generated the numbers in Excel, then pasted into PFE (programmer’s file editor) so I could replace \n newline characters with commas and easily paste it into a code component as a list.

However, there is a suggestion of a function you can use here:

// Standard Normal variate using Box-Muller transform.
function randn_bm() {
    var u = 0, v = 0;
    while(u === 0) u = Math.random(); //Converting [0,1) to (0,1)
    while(v === 0) v = Math.random();
    return Math.sqrt( -2.0 * Math.log( u ) ) * Math.cos( 2.0 * Math.PI * v );
}

Also mentioned here: