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?
Ben
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?
You can generate other random numbers in a loop and exit the loop once it is different and keep the final number.
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,