Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
greydius
on July 24, 2015
|
parent
|
context
|
favorite
| on:
A call to PHP's mt_rand generates only odd numbers
Count from 2 to infinity and 0 to -infinity and you will get the opposite result: you'll have an extra odd number, 1.
alphabetam
on July 24, 2015
[–]
The function n -> n + 1 maps every even number into an odd, and it has an inverse (obviously n -> n - 1). Thus, the two sets have the same cardinality.
bpicolo
on July 24, 2015
|
parent
[–]
Into a unique odd (which is key) : P
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: