Питон: import random
numbers = [random.uniform(-2,2) for _ in range(25)]
min_element = min(numbers)
print(min_element) C#: Random rand = new Random();
int[] numbers = new int[25];
for (int i = 0; i < 25; i++)
{
numbers = rand.Next(-2, 2);
}
int min_element = numbers.Min();
Console.WriteLine(min_element); C++: #include
#include
#include
int main() {
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution dis(-2, 2);
std::vector numbers;
for (int i = 0; i < 25; i++) {
numbers.push_back(dis(gen));
}
auto min_element = std::min_element(numbers.begin(), numbers.end());
std::cout