logoalt Hacker News

skybrian • today at 1:01 AM • 0 replies • view on HN

Random numbers aren't precious, but they do take time to generate. Rejection sampling adds a branch and it can matter how often it's taken. In my property-testing framework, generating a large, random array of numbers more efficiently improved performance.