summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils.py b/utils.py
new file mode 100644
index 0000000..d068023
--- /dev/null
+++ b/utils.py
@@ -0,0 +1,6 @@
+import numpy
+from random import random
+
+def random_array(rows: int, columns: int):
+ random_matrix = [[random() for x in range(rows)] for y in range(columns)]
+ return numpy.asarray(random_matrix)