Skip to content

Commit c9fd8ce

Browse files
committed
randomGaussian arguments are optional
According to the reference [1] this function should allow being called with no arguments but TypeScript is complaining. 1 - https://p5js.org/reference/#/p5/randomGaussian
1 parent 454e8f9 commit c9fd8ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/random.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ p5.prototype.random = function(min, max) {
165165
* If two args, first is mean, second is standard deviation.
166166
*
167167
* @method randomGaussian
168-
* @param {Number} mean the mean
169-
* @param {Number} sd the standard deviation
168+
* @param {Number} [mean] the mean
169+
* @param {Number} [sd] the standard deviation
170170
* @return {Number} the random number
171171
* @example
172172
* <div>

0 commit comments

Comments
 (0)