Talk:Random numbers: Difference between revisions

m
m (→‎use a pi approximation: added new talk section.)
 
(6 intermediate revisions by 4 users not shown)
Line 1:
== Isn't this page misnamed? ==
Isn't this page misnamed? These are all pseudo-random numbers, I think.
 
: Nope. These are APIs into a provider for random numbers. What this provider is and how it works depends on the language, the implementation and the OS. Some may or may not produce pseudo-random numbers; some others may not.
 
 
== Formatting trouble ==
Line 45:
 
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)
 
== Are we allowed to use a built-in normally distributed RNG? ==
 
TI-BASIC has a command that generates normally distributed random numbers: randNorm(
Are we allowed to use it, or do we have to convert from uniformly distributed?
 
== Isn't this page redundant? ==
 
...with https://rosettacode.org/wiki/Statistics/Normal_distribution ? It's just a slightly simpler version of the same task, as far as I can tell. [[User:JoeStrout|JoeStrout]] ([[User talk:JoeStrout|talk]]) 18:58, 27 October 2019 (UTC)
 
== Use _which_ formula? ==
 
The task description says "use this formula" and links to a Wikipedia section that contains half a dozen formulas. Can we clarify which formula should be used? Or else change the link text to something like "use a formula such as one of these"? [[User:JoeStrout|JoeStrout]] ([[User talk:JoeStrout|talk]]) 18:58, 27 October 2019 (UTC)
:You are correct, it's misleading. However, the task asks simply to produce normally distributed random numbers, and there are many ways to do this. Any one should be acceptable, I think. I changed the task description accordingly. If you don't know which one to pick, the [https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform Box-Muller transform] is probably the simplest, though not the fastest. [[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 20:20, 27 October 2019 (UTC)
1,336

edits