Wylosuj liczbę

Sprawdź

jako separatora użyj kropki

a = 3 (slider from 0 to 6, step 1)
c = Random(1, 9)
d = Random(0, 9)
e = Random(0, 9)
f = Random(0, 9)
g = Random(0, 9)
h = Random(0, 9)
i = Random(0, 9)
j = Random(0, 9)
b: 10^((-a))
tekst1: "Zaokrąglij liczbę z dokładnością do " + b + ""
k = Random(1, 9)
tekst2: "" + c + "." + d + "" + e + "" + f + "" + g + "" + h + "" + i + "" + j + "" + k + "≈"
liczba_0 = If(d ≥ 5, c + 1, c)
liczba_1 = If(e ≥ 5, c + (0.1 * (d + 1)), c + (0.1 * d))
liczba_2 = If(f ≥ 5, c + (0.1 * d) + (0.01 * (e + 1)), c + (0.1 * d) + (0.01 * e))
liczba_3 = If(g ≥ 5, c + (0.1 * d) + (0.01 * e) + (0.001 * (f + 1)), c + (0.1 * d) + (0.01 * e) + (0.001 * f))
liczba_4 = If(h ≥ 5, c + (0.1 * d) + (0.01 * e) + (0.001 * f) + (1.0E-4 * (g + 1)), c + (0.1 * d) + (0.01 * e) + (0.001 * f) + (1.0E-4 * g))
liczba_5 = If(i ≥ 5, c + (0.1 * d) + (0.01 * e) + (0.001 * f) + (1.0E-4 * g) + (1.0E-5 * (h + 1)), c + (0.1 * d) + (0.01 * e) + (0.001 * f) + (1.0E-4 * g) + (1.0E-5 * h))
liczba_6 = If(j ≥ 5, c + (0.1 * d) + (0.01 * e) + (0.001 * f) + (1.0E-4 * g) + (1.0E-5 * h) + (1.0E-6 * (i + 1)), c + (0.1 * d) + (0.01 * e) + (0.001 * f) + (1.0E-4 * g) + (1.0E-5 * h) + (1.0E-6 * i))
liczba_z = If(a ≟ 0, liczba_0, If[a ≟ 1, liczba_1, If[a ≟ 2, liczba_2, If[a ≟ 3, liczba_3, If[a ≟ 4, liczba_4, If[a ≟ 5, liczba_5, liczba_6]]]]])
o: 9.677
PoleTekstowe1 = Textfield(odp)