Forum Discussion
karkadil
14 years agoValued Contributor
Here is an example of such code using the randInt() function I provided earlier.
function generateTwoNumbers()
{
var n1, n2;
n1 = n2 = randInt(1, 9);
while(n2 == n1)
{
n2 = randInt(1, 9);
}
}
function generateTwoNumbers()
{
var n1, n2;
n1 = n2 = randInt(1, 9);
while(n2 == n1)
{
n2 = randInt(1, 9);
}
}