I would like to create a matrix (rows/columns determined by user) of random integers in a range by step. I have been trying to get step into random.random_integers but it has not been working for me. Example output:
Size 3x4, range 22-37, step 2:
[[26 22 32 28]
[24 30 26 22]
[36 34 22 36]]
Aucun commentaire:
Enregistrer un commentaire