Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for rand() #176

Open
Azzaare opened this issue Aug 14, 2021 · 2 comments
Open

Add support for rand() #176

Azzaare opened this issue Aug 14, 2021 · 2 comments

Comments

@Azzaare
Copy link

Azzaare commented Aug 14, 2021

It would be great to handle rand for (union of) intervals

Of course, there is an issue with opened and closed bounds and how to handle them, as most rng will a value within an opened/closed interval. However, I believe it is not statically an issue.

If this is a feature of interest, I can make a PR for that next month (or someone can do it before me :p). Otherwise, I will define the function in my project!

@omus
Copy link
Collaborator

omus commented Aug 17, 2021

I think it's totally reasonable to be able to sample from an Interval. Feel free to open an PR

@haberdashPI
Copy link
Contributor

I have some old code from TimeSpans lying around that has most of the functionality needed for this: beacon-biosignals/TimeSpans.jl#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants