This commit is contained in:
alstergym
2026-09-28 15:44:01 +02:00
parent 9ae1b726b7
commit 1c3f91aa83
4 changed files with 68 additions and 28 deletions
+8 -1
View File
@@ -1,6 +1,9 @@
import numpy as np
import time
random_arr = np.random.randint(1,101,10)
start = time.time()
random_arr = np.random.randint(1,2001,2000)
print(random_arr)
@@ -16,6 +19,10 @@ while sorted == False:
random_arr[index + 1] = temp
sorted = False
end = time.time()
total_time = end - start
print(random_arr)
print(f'total time:{total_time} s')