dimanche 24 octobre 2021

Assigning random values to a pair of integers using rpois(2,100)

Let's say I have two integers which are (x,y). How do I assign the values of (x,y) to rpois(2,100). I need to do this because I need to change the values of (x,y) randomly all the time to test my functions if they are correct. I tried to use a =function(x,y) { (x,y)=rpois(2,100) return(x,y) } However, it appears that (x,y) is wrong because of the comma




Aucun commentaire:

Enregistrer un commentaire