[go: up one dir, main page]

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 sample generator function #517

Open
sepehrs1378 opened this issue Dec 21, 2020 · 1 comment
Open

Add sample generator function #517

sepehrs1378 opened this issue Dec 21, 2020 · 1 comment

Comments

@sepehrs1378
Copy link

I implemented a function that randomly generates an arbitrary number of samples from a given array and a weights list.
You can also pass a replace argument which indicates that picked elements may be picked again or not.
I wish it will be useful.

sepehrs1378 added a commit to sepehrs1378/chancejs that referenced this issue Dec 21, 2020
@somejeff
Copy link
Contributor

I've added some comments related to the PR sepehrs1378@c713516

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

2 participants