Skip to content

Conversation

@MaximAlmaev
Copy link

Было необходимо сгенерировать 2 случайные последовательности с помощью генераторов псевдослучайных чисел и провериbть их с помощью тестов NIST. В файлах generator.java и generator.cpp содержится код для 1-го этапа лабораторной работы, в файле NIST_1 , NIST_2, NIST_3 - для 2-го.
В модуле file_works.py находятся функции для работы с json файлами. Модуль main.py является точкой входа в программу и содержит в себе все необходимые вызовы функций, необходимые для выполнения задания. Файлы report_java и report_cpp хранят отчёты, в соответствии с третьим этапом лабораторной работы.

@github-actions github-actions bot added In progress Код в процессе проверки Lab 2 Лабораторная 2 "Статистический анализ псевдослучайных последовательностей" labels Sep 24, 2025
@MaximAlmaev
Copy link
Author

На пересдачу @Daria-creator-lab

Comment on lines 27 to 29
def return_arr(seq):
numeric_arr = []
for item in seq:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а здесь где докстринги?

Comment on lines 1 to 6
import java.security.SecureRandom;

public class RandomBinary {
public static void main(String[] args) {
SecureRandom random = new SecureRandom();
StringBuilder binary = new StringBuilder();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 1 to 6
#include <iostream>
#include <random>

int main() {
std::random_device rd;
std::mt19937_64 gen(rd());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

аналогично для плюсов

lab_2/NISP_2.py Outdated

if n == 0:
return 0
runs = 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

почему runs = 1?

@MaximAlmaev
Copy link
Author

На пересдачу @Daria-creator-lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

In progress Код в процессе проверки Lab 2 Лабораторная 2 "Статистический анализ псевдослучайных последовательностей"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants