In our use of STACK we often use multiple random variables within the question. Is there a way to generate paired random variables in which only predetermined paired values are displayed?
For example, one might have the following random variables:
x : rand([ 1,3,5 ]);
y : rand([ 2,4,6 ]);
However, only particular pairings of x and y are acceptable for the problem, say:
x : 1 , y : 2
x : 3 , y : 4
x : 5 , y : 6
Is there a function that can be used to accomplish this?
(In this example there is a single mathematical function that relates the two variables that could be used to generate the second variable. However, my question is for the more general case in which no single mathematical function relates the two variables requiring specific numerical pairs be determined in advance.)