We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76d6814 + a93ed04 commit 99cf7c7Copy full SHA for 99cf7c7
1 file changed
py5_resources/py5_module/py5/mixins/math.py
@@ -385,7 +385,7 @@ def random_gaussian(self, *args: float) -> float:
385
return self._rng.normal()
386
elif len(args) == 1:
387
loc = args[0]
388
- if isinstance(loc, (int, np.integer)):
+ if isinstance(loc, (int, np.integer, float)):
389
return self._rng.normal(loc)
390
elif len(args) == 2:
391
loc, scale = args
0 commit comments