diff options
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 6 |
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) |