Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! 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: