Jump to content

Random numbers: Difference between revisions

m
imported>Arakov
Line 909:
=={{header|Elena}}==
{{trans|C#}}
ELENA 46.1x :
<syntaxhighlight lang="elena">import extensions;
import extensions'math;
Line 924:
real tAvg := 0;
for (int x := 0,; x < a.Length,; x += 1)
{
a[x] := (randomNormal()) / 2 + 1;
Line 934:
real s := 0;
for (int x := 0,; x < a.Length,; x += 1)
{
s += power(a[x] - tAvg, 2)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.