You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just trying to get the scheduler to schedule things at random frequencies after than 1 time a second.
I don't actually care too much about it being perfect, just a useful library to schedule things.
Would it be possible to replace the logic with a (maxval-minval)*random.random()+minval maybe? I imagine that's what randrange does internally (or something similar). The only concern is this would be changing the behavior from only integer values being output to non integer values.
The text was updated successfully, but these errors were encountered:
Hi!
I was just trying to get the scheduler to schedule things at random frequencies after than 1 time a second.
I don't actually care too much about it being perfect, just a useful library to schedule things.
This line is making that impossible: https://github.com/dbader/schedule/blob/master/schedule/__init__.py#L715
Would it be possible to replace the logic with a (maxval-minval)*random.random()+minval maybe? I imagine that's what randrange does internally (or something similar). The only concern is this would be changing the behavior from only integer values being output to non integer values.
The text was updated successfully, but these errors were encountered: