На языке Python:
from random import random
m1 = int(input())
m2 = int(input())
n = int(random() * (m2 - m1 + 1)) + m1
print(n)
На языке Pascal:
var n, i, x: integer;
begin
randomize;
n := random (7) + 5;
for i := 1 to n do begin
x := random (100) - 50;
write (x:5)
end;
readln
end.
var a: array[1..10] of integer; i: integer;
for i := 1 to 10 do
a[i] := random(101) + 100;
writeln(a[i]);
На языке Python:
from random import random
m1 = int(input())
m2 = int(input())
n = int(random() * (m2 - m1 + 1)) + m1
print(n)
На языке Pascal:
var n, i, x: integer;
begin
randomize;
n := random (7) + 5;
for i := 1 to n do begin
x := random (100) - 50;
write (x:5)
end;
readln
end.
var a: array[1..10] of integer; i: integer;
begin
randomize;
for i := 1 to 10 do
begin
a[i] := random(101) + 100;
writeln(a[i]);
end;
end.