You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be easier to comment if you would share what you are trying to do and your code.
RandIntV | RandRealV | RandTimeV are overloaded. The simplest form is:
-- Generate 10 integer values in the range 0 to 255
IntV(1 to 10) := RV.RandIntV(0, 255, 10) ;
However there are times when you want to not repeat either the last value or some number of the previous values. This is handled by:
-- Generate 10 integer values in the range 0 to 255, do repeat the last value
IntV(1 to 10) := RV.RandIntV(0, 255, 1, 10) ;
What happened in your case is that you asked it go create more unique values than are in the set of numbers you are selecting between - and hence, it is not possible to satisfy your request. The following would also generate the same error:
IntV(1 to 10) := RV.RandIntV(0, 4, 10, 10) ;
This is discussed in the user guide section 7 Randomizing Sets of Values.
During tests with usage of RandomPType sometimes I receive following error:
what does it mean?
The text was updated successfully, but these errors were encountered: