<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Fast Random Integer Generation in an Interval · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/1805.10941/</link><description>Collected HN comments and submissions linking this paper.</description><language>en</language><lastBuildDate>Mon, 02 Nov 2026 11:16:22 GMT</lastBuildDate><atom:link href="https://hackerpaper.kaipfister.de/p/1805.10941/feed.xml" rel="self" type="application/rss+xml" /><item><title>Fast Random Integer Generation in an Interval — mentioned by jart</title><link>https://news.ycombinator.com/item?id=30619958</link><guid isPermaLink="false">urn:hackerpapers:mention:1805.10941:30619958</guid><pubDate>Wed, 09 Mar 2022 21:07:00 GMT</pubDate><description>&lt;p&gt;It&amp;#x27;s Lemire&amp;#x27;s Lehmer Generator or LEMUR 64 for short https://arxiv.org/pdf/1805.10941.pdf https://archive.org/details/proceedings_of_a_second_symposiu...&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1805.10941/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item><item><title>Fast Random Integer Generation in an Interval — mentioned by NWDD</title><link>https://news.ycombinator.com/item?id=28227425</link><guid isPermaLink="false">urn:hackerpapers:mention:1805.10941:28227425</guid><pubDate>Wed, 18 Aug 2021 21:29:46 GMT</pubDate><description>&lt;p&gt;For many use cases biased is good enough. The topic of unbiased bounded generation is pretty interesting itself and both lemire and M.E. O&amp;#x27;Neill (author of pcg) wrote blog posts and an academic paper comparing different approaches (some using as building block the fixed point trick) https://www.pcg-random.org/posts/bounded-rands.html https://lemire.me/blog/2019/06/06/nearly-divisionless-random... https://arxiv.org/pdf/1805.10941.pdf&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1805.10941/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item><item><title>Fast Random Integer Generation in an Interval — mentioned by Reelin</title><link>https://news.ycombinator.com/item?id=24683768</link><guid isPermaLink="false">urn:hackerpapers:mention:1805.10941:24683768</guid><pubDate>Mon, 05 Oct 2020 01:31:10 GMT</pubDate><description>&lt;p&gt;I&amp;#x27;m a bit confused. Looking at the original paper (https://arxiv.org/pdf/1805.10941.pdf) this doesn&amp;#x27;t seem to be a RNG itself but rather a method to efficiently transform the output of a RNG onto an arbitrary interval while maintaining a uniform distribution. (This is at odds with the current title.) See in particular &amp;quot;Algorithm 5&amp;quot; which specifies retrieving a random integer on lines 1 and 7. In section 5, the authors specify that they use a linear congruential generator for their experiments. If my understanding is correct, this is an important distinction because it means you can plug…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1805.10941/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item><item><title>Fast Random Integer Generation in an Interval — mentioned by MauranKilom</title><link>https://news.ycombinator.com/item?id=24683067</link><guid isPermaLink="false">urn:hackerpapers:mention:1805.10941:24683067</guid><pubDate>Sun, 04 Oct 2020 23:25:30 GMT</pubDate><description>&lt;p&gt;After reading the intro of the article, I wanted to see whether I could get the gist of the algorithm just from looking at the first code of it that I come upon. I thus took the first such link from the article (https://arxiv.org/pdf/1805.10941.pdf) while trying to avoid any spoilers. There was no way to unsee the comment at the top of the article, but I don&amp;#x27;t think it helped much. I did skim the paper to find which of the listed algorithms is the one in question (Algorithm 5), which inevitable primed me a bit (primarily by having the context of the two other rejection sampling algorithms). I…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1805.10941/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item><item><title>Fast Random Integer Generation in an Interval — mentioned by igg</title><link>https://news.ycombinator.com/item?id=24047433</link><guid isPermaLink="false">urn:hackerpapers:mention:1805.10941:24047433</guid><pubDate>Tue, 04 Aug 2020 07:02:22 GMT</pubDate><description>&lt;p&gt;It is Julia all the way down. julia&amp;gt; @which randn(1000) randn(dims::Integer...) in Random at ~/Software/Julia/share/julia/stdlib/v1.5/Random/src/normal.jl:210 julia&amp;gt; @edit randn(1000) # Opens the normal.jl file in your editor julia&amp;gt; @run randn(1000) # Starts the debugger in VSCode Digging deeper, at least one of the PRs [1] is based on a 2018 paper [2] [1] https://github.com/JuliaLang/julia/pull/29240 [2] https://arxiv.org/abs/1805.10941&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1805.10941/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item><item><title>Fast Random Integer Generation in an Interval — mentioned by caf</title><link>https://news.ycombinator.com/item?id=20962438</link><guid isPermaLink="false">urn:hackerpapers:mention:1805.10941:20962438</guid><pubDate>Fri, 13 Sep 2019 14:25:14 GMT</pubDate><description>&lt;p&gt;This appears to be the state of the art in minimising the resampling cost: https://arxiv.org/pdf/1805.10941.pdf&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1805.10941/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item><item><title>Fast Random Integer Generation in an Interval — HN submission</title><link>https://news.ycombinator.com/item?id=19482212</link><guid isPermaLink="false">urn:hackerpapers:submission:1805.10941:19482212</guid><pubDate>Mon, 25 Mar 2019 13:23:57 GMT</pubDate><description>&lt;p&gt;Fast Random Integer Generation in an Interval&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;1 point; 0 discussion replies on HN. &lt;a href="https://hackerpaper.kaipfister.de/p/1805.10941/"&gt;Paper and source history&lt;/a&gt;. A submission is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item><item><title>Fast Random Integer Generation in an Interval — HN submission</title><link>https://news.ycombinator.com/item?id=17185916</link><guid isPermaLink="false">urn:hackerpapers:submission:1805.10941:17185916</guid><pubDate>Wed, 30 May 2018 08:00:57 GMT</pubDate><description>&lt;p&gt;Fast Random Integer Generation in an Interval&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;2 points; 0 discussion replies on HN. &lt;a href="https://hackerpaper.kaipfister.de/p/1805.10941/"&gt;Paper and source history&lt;/a&gt;. A submission is not an endorsement.&lt;/p&gt;</description><category>cs.DS</category></item></channel></rss>
