Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    \$\begingroup\$ @FryAmTheEggman If the floating point requirement is dropped, the best I can figure out is to forget the multiplication trick entirely and do e+choice([0,k]) \$\endgroup\$ Commented Apr 30, 2016 at 21:57
  • \$\begingroup\$ Ah quite right, nice way to avoid multiplying. That said the floating point requirement was removed so you can change your answer to that instead. \$\endgroup\$ Commented Apr 30, 2016 at 22:07
  • \$\begingroup\$ @FryAmTheEggman Oh haha, I didn't notice. I'll do that now, thanks :) \$\endgroup\$ Commented Apr 30, 2016 at 23:07