Random indices are drawn from a finite set with given probabilities p[0], ..., p[n-1]. Using the alias method by Walker and Vose, some tables are precomputed. This allows for a very efficient drawing, with cost independent of n. The software comes as a little C library, with configure and make scripts, and with an application example.
Follow ransampl - random number sampling
You Might Also Like
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of ransampl - random number sampling!