nl_tokens: FUNCTION : recurse ( dims d draw ) Recursively create a multidimensional array of normally distributed random numbers .
pl_tokens: function recurse ( dims , d , draw ) { var <mask> = [ ] ; var len ; var i ; len = dims [ d ] ; d += 1 ; if ( d < dims . length ) { for ( i = 0 ; i < len ; i ++ ) { out . push ( recurse ( dims , d , draw ) ) ; } } else { for ( i = 0 ; i < len ; i ++ ) { out . push ( draw ( ) ) ; } } return out ; }