Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Is there a built in function in MathCAD prime that can create pair combinations of integers from two dissimilar length vectors filled with integers?
Mathcad has a random number generator, there has been a fair amount of discussion over the years about how random it really is.
I don't know of a built-in function that would do what you want; but using the random number generator to create random indices into each vector shouldn't be terribly difficult.
As Fred indicated, there isn't a built-in function, but it's easy to create one, if you trust the built-in random number generators:
I've take that both arrays are the same length, so they can be columns of the same matrix.
I'm also assuming that you want numbers from different rows...
Success!
Luc
Here is my approach with a function with two vector arguments which can be of different size: