peterhull90
Joined 12 years ago
Joined 12 years ago
Also, the article links to a blog by Daniel Lemire [1] in which he says (with regard to producing an unbiased random float) "picking an integer in [0,2^32) at random and dividing it by 2^32, was equivalent to picking a number at random in [0,1)" is incorrect and there is a ratio of up to 257:1 in the distribution so obtained. Not wanting to disagree with Daniel Lemire but I can't see why, and a quick experiment in Python didn't give this ratio.
[0]: https://news.ycombinator.com/item?id=41112688
[1]: https://lemire.me/blog/2017/02/28/how-many-floating-point-nu...
def loop():
for number in range(10):
def outer(n):
def inner():
return n
return inner
yield outer(number)
Is there a neater way?It's very interesting, a sort of missing piece of history from my point of view. At school those centuries was just skipped as 'the dark ages.'
> ping6 ff02::1%en1
for example.
I wasn't able to get it to work on Windows (I can get the command to work in WSL but it seems to sit alone in an internal network). Any advice welcome.
[0]: https://man.freebsd.org/cgi/man.cgi?query=pbzip2&apropos=0&s...
https://www.mir.com.my/rb/photography/companies/nikon/htmls/...
[0]:https://commandcenter.blogspot.com/2017/09/go-ten-years-and-...
[0] : https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-...