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
  • \$\begingroup\$ You can save about 20 bytes if you use a lambda for the function and return a list comprehension (with an inner generator expression): f=lambda n:[(x,x+2*m.acos(r()))for x in(2*m.pi*r()for _ in range(n))] \$\endgroup\$ Commented May 2, 2015 at 7:51
  • \$\begingroup\$ Ah, I had a lambda originally. I guess I didn't think about doubling up on list comprehensions. Thanks! @Blckknght \$\endgroup\$ Commented May 2, 2015 at 8:02
  • \$\begingroup\$ Can be shortened to 109 bytes by fiddling with the imports: tio.run/#python2 \$\endgroup\$ Commented Aug 8, 2018 at 21:00