Reply To: Patch: Support for random integer_vector

Why OSVVM™? Forums OSVVM Patch: Support for random integer_vector Reply To: Patch: Support for random integer_vector

#735
Andy Jones
Member

Why is it desired to have, for all of the variants of RandIntV(), size as the last parameter, when it is always required? 

If the additional (optional) parameters were last, then they could be defaulted, while still allowing positional notation, and fewer functions could be defined, thereby reducing maintenance and code bulk.

Unique and exclude could be defaulted to 0 and a null vector, respectively.

Andy