That's good and will work, but I think that it will give a higher
proportion of lower numbers. How about something like:
a = Int(Rnd * 10)
b = Int(Rnd * 10)
If a > b Then
firstNubmer = a
secondNumber = b
Else
firstNumber = b
secondNubmer = a
EndIf
With this, firstNumber - SecondNumber is always greater than or equal to
0 and, I think, the numbers will be more evenly distributed.
--David
--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/