Anonymous user
Talk:Random numbers: Difference between revisions
m
→use a pi approximation: added new talk section.
No edit summary |
m (→use a pi approximation: added new talk section.) |
||
Line 41:
:::Thanks guys, it turned out to be cos expecting degrees rather than radians and I've fixed it now.
:::The documentation of the random generator claims the return values will be inclusive of the arguments, but I tested 1000000000 randoms and got 50 hits on <tt>rand == 1.0</tt> and no hits on <tt>rand == 0.0</tt>. I know the vagaries of floating point comparisons, but as that test took ~20 mins to run, I think it's good enough for this purpose ;o) [[User:Drea|Drea]] 14:19, 21 September 2007 (MDT)
== using a pi approximation ==
I noticed one programming example using 22/7 for the value of pi. Is this close enough for government work? Could/should it be flagged ''in need of improvement''? -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 18:45, 28 October 2014 (UTC)
|