From a6f5d2f2ba865d54f973563cd22f7e319665a987 Mon Sep 17 00:00:00 2001 From: Saatwik122 <147068250+Saatwik122@users.noreply.github.com> Date: Sat, 7 Oct 2023 23:13:47 +0530 Subject: [PATCH] Generates Random Array test cases Generate Random Test cases and in each test case prints the size of array the then array itself --- test_case_generator.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test_case_generator.cpp diff --git a/test_case_generator.cpp b/test_case_generator.cpp new file mode 100644 index 0000000..6bb7fa5 --- /dev/null +++ b/test_case_generator.cpp @@ -0,0 +1,16 @@ +#include +using namespace std; +int main() +{ + srand(time(0)); // seeding the rand with system time + int t= rand() % 10 + 1; // printing number between + // range 1 to 100 + cout<