samedi 2 octobre 2021

How can I insert a number at randomized location in matrix in R? [duplicate]

So I have a 50*50 matrix full of 0's and I'm trying to add two 1's in randomized locations in the matrix. How would I go about this?




Aucun commentaire:

Enregistrer un commentaire