Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
firebatpi
on June 30, 2019
|
parent
|
context
|
favorite
| on:
How to pick a random number from 1-10
There's no need to solve the distribution balancing problem with linear programming. You can just use a greedy algorithm where you repeatedly give probability mass from numbers with more than 10% to numbers with less.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: