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.

Project Activity

See All Activity >

Follow ransampl - random number sampling

ransampl - random number sampling Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ransampl - random number sampling!

Additional Project Details

Registered

2013-08-15