mercredi 26 février 2020

Generate random numbers in certain range with certain spacing

I want to generate an nx1 vector of random numbers on a specified range inclusive of the end points with whole number spacing. e.g.

[0 120] with spacing 0

It seems like randi() is what I should use but it doesn't seem like it's possible to do everything I want with it. Is there another function that I can use to help me with this?




Aucun commentaire:

Enregistrer un commentaire