Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dnautics
on March 2, 2017
|
parent
|
context
|
favorite
| on:
How many floating-point numbers are in the interva...
f() = (rand() + 1.0) - 1.0
and pray that your compiler isn't clever! Or you can actually randomize the fraction bits.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
and pray that your compiler isn't clever! Or you can actually randomize the fraction bits.