mardi 25 décembre 2018

Generate 2 random numbers in MATLAB

How to generate two random numbers α, β ~ U[-1,+1] if β ≥ α?

My first intention was to just generate two vectors and only take the ones which satisfy β ≥ α and discard the rest. However, I think that might change the distribution.




Aucun commentaire:

Enregistrer un commentaire