my late night recreational vibe coding session is now a library: https://github.com/jb55/droptables
droptables is a new rust library for sampling discrete probability distributions in O(1) time using Walker Alias tables generated at compile time!
It's pretty powerful and near optimal in terms of sampling performance, here's a demo of it simulating an OSRS boss:

code: https://github.com/jb55/droptables/blob/master/examples/osrs.rs
ok back to work...
nostr:note1jqzngqsqyy5trdxkhmr0pesy042909eeklcfczulh4pnrgqme96qy3nrem