quickutil icon indicating copy to clipboard operation
quickutil copied to clipboard

Add RANDOM-FROM and BISECT

Open notmgsk opened this issue 6 years ago • 0 comments

This adds two functions:

  1. BISECT: returns the position in an ordered list where element should be inserted while preserving order
  2. RANDOM-FROM: returns a number of samples from the provided list using weights if provided, otherwise each choice is equally likely. Depends on BISECT.

Looking for feedback and improvements.

notmgsk avatar Jul 17 '18 18:07 notmgsk