Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Even if it were 0.0 to 1.0 inclusive there'd still be a bug in the code since there's a very slim chance of getting a 1.000000 from the RNG, so in that buggy code, 'F' would still almost never be selected.

For that reason, a floating point random number from 0 to 1.0000000 inclusive would be hard to work with.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: