jb55 _@jb55.com 4 months ago its <= twice the size, not sure that really matters. I was also looking at Fast Generation of Discrete Random Variables | Journal of Statistical Software which seems memory optimal but was more complex
semisol semisol@nostr.land 4 months ago for simplicity I would go with a binary search approach, but that is cool