Skip to content

Commit

Permalink
Merge pull request #164 from jcmhk/patch-2
Browse files Browse the repository at this point in the history
Update owrandomdata.py
  • Loading branch information
janezd authored Jan 17, 2024
2 parents 6ef48e1 + 4b50c35 commit 8379be3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion orangecontrib/educational/widgets/owrandomdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ class ContinuousUniform(ParametersEditorContinuous):
ParameterDef("Low bound", "loc", 0, any_float),
ParameterDef("High bound", "scale", 1, any_float)
)
rvs = stats.uniform.rvs
@staticmethod
def rvs(loc, scale, size):
return stats.uniform.rvs(loc, scale - loc, size=size)

@staticmethod
def check(*, loc, scale): # pylint: disable=arguments-differ
Expand Down

0 comments on commit 8379be3

Please sign in to comment.