Series of unique random numbers ? (EV6)
Posted: Mon Jul 12, 2010 10:24 am
Dear all,
In my attempt to make a MC simulation, I need to generate a set of unique random numbers from uniform distribution. This set is generated once per step, so there is no problem of non uniqueness once the current iteration is over. What I was trying to do, is to create a column matrix with each row filled with these random numbers, and then make a loop to compare i-th element to all others... This lead to an infinite looping. Is there a possibility to create such a series? Or is there a possibility (command) to check with TRUE/FALSE output if the given value is in the set?
Thank you for the rely. Please, don't hesitate to ask me for clarifications, as I am new to these boards and my post may not be sufficiently complete.
Yan
In my attempt to make a MC simulation, I need to generate a set of unique random numbers from uniform distribution. This set is generated once per step, so there is no problem of non uniqueness once the current iteration is over. What I was trying to do, is to create a column matrix with each row filled with these random numbers, and then make a loop to compare i-th element to all others... This lead to an infinite looping. Is there a possibility to create such a series? Or is there a possibility (command) to check with TRUE/FALSE output if the given value is in the set?
Thank you for the rely. Please, don't hesitate to ask me for clarifications, as I am new to these boards and my post may not be sufficiently complete.
Yan