03-09-2012 10:00 AM
Even if the numbers are less than 45, there is a non-zero chance that they will be equal. What is the purpose of this exercise? How do you run this?
03-09-2012 10:02 AM
Ben
03-09-2012 10:07 AM
Ok Ben ... this is the solution.
but, if i have other random Number...
who to guarantee that not have the same number thet the first?
03-09-2012 10:10 AM
You can generate other random numbers in a loop and exit the loop once it is different and keep the final number.
03-09-2012 10:22 AM
Hi,
I understand that he wanna 2 random number but with 1 always under 45.
Spanish: "Si tienes problemas expresando lo que quieres en ingles, hay una sección del foro exclusivamente en español que puedes utilizar"
Best Regards,