Here is the general idea. You can look after the specifics.
// generate list of numbers.
maxnum = 15;
numlist = "";
for (i = 1; i lte maxnum; i = i + 1)
numlist = listappend(numlist, i);
// randomnums will have the two random numbers
RandomNums = "";
x = true;
while (x is true) {
ThisNum = RandRange(1, maxNum);
if (ListFind(RandomNums, ThisNum) is false)
RandomNums = ListAppend(RandomNums, ThisNum);
if (ListLen(RandomNums) is 2)
x = false;
}