I need a NumPy array with size 10000 and it should be filled with 0 and 1, I want to regulate the number of 1's.
Example: [1 0 1 1 1 1 1 0 1 0]
size = 10; num of 1's = 7
Aucun commentaire:
Enregistrer un commentaire