dimanche 5 décembre 2021

How to generate 2D array for random numbers?

I am a beginner here and want to generate a random number of float type in the range 0 to 1 with 3*4 size.

Later I want also to slice the first row and last column of the array.

I tried this one but it's not good way.

 import random
a=random.sample(range(0, 1))

Best




Aucun commentaire:

Enregistrer un commentaire