-
Notifications
You must be signed in to change notification settings - Fork 74
6214 Алмаев М.В. Лаб.2 Вар.2 #272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
На пересдачу @Daria-creator-lab |
| def return_arr(seq): | ||
| numeric_arr = [] | ||
| for item in seq: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а здесь где докстринги?
| import java.security.SecureRandom; | ||
|
|
||
| public class RandomBinary { | ||
| public static void main(String[] args) { | ||
| SecureRandom random = new SecureRandom(); | ||
| StringBuilder binary = new StringBuilder(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В java есть JavaDoc
https://docs.oracle.com/en/java/javase/23/docs/specs/man/javadoc.html
| #include <iostream> | ||
| #include <random> | ||
|
|
||
| int main() { | ||
| std::random_device rd; | ||
| std::mt19937_64 gen(rd()); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему runs = 1?
|
На пересдачу @Daria-creator-lab |
Было необходимо сгенерировать 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 хранят отчёты, в соответствии с третьим этапом лабораторной работы.