|
@@ -0,0 +1,20 @@
|
|
|
+//05/27/2024 Li SiHan Added Start
|
|
|
+#include"pch.h"
|
|
|
+#include "GenerateMethod.h"
|
|
|
+//随机数生成所需要引用的包
|
|
|
+#include<stdlib.h>
|
|
|
+#include<time.h>
|
|
|
+
|
|
|
+int* RandomArrayCreate(int Arraylength)
|
|
|
+{
|
|
|
+ int static arr[10];
|
|
|
+
|
|
|
+ srand((unsigned int)time(NULL));
|
|
|
+ for (int i = 0; i < Arraylength; i++)
|
|
|
+ {
|
|
|
+ arr[i] = 1 + rand() % 100;
|
|
|
+ }
|
|
|
+
|
|
|
+ return arr;
|
|
|
+}
|
|
|
+//05/27/2024 Li SiHan Added End
|