Convert a 40/60 biased function into a 50/50 function
Filed under Opera Solutions
The question
A function returns 0 with 40 percent and 1 with 60 percent probability; modify to return each with equal probability.
No write-up yet. Related questions below have one.
Related Opera Solutions questions
Collected from public candidate posts and coding forums. Updated Nov 2026.