Skip to content

Commit 99cf7c7

Browse files
authored
Merge pull request #737 from hx2A/fix736
fix #736
2 parents 76d6814 + a93ed04 commit 99cf7c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • py5_resources/py5_module/py5/mixins

py5_resources/py5_module/py5/mixins/math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def random_gaussian(self, *args: float) -> float:
385385
return self._rng.normal()
386386
elif len(args) == 1:
387387
loc = args[0]
388-
if isinstance(loc, (int, np.integer)):
388+
if isinstance(loc, (int, np.integer, float)):
389389
return self._rng.normal(loc)
390390
elif len(args) == 2:
391391
loc, scale = args

0 commit comments

Comments
 (0)