Random number generator
Archiver
Posts: 46,084
Hi all, I need to generate a random betwwen 1 and 7 can anyone help
me with the coding please? how do I make sure the number generated
is between 1 and 7?
me with the coding please? how do I make sure the number generated
is between 1 and 7?
Comments
(modulus) operator. That and a little simple arithmetic should get
you there.
Regards,
Steve
On 24 Nov 02 at 21:31, konpen wrote:
> Hi all, I need to generate a random betwwen 1 and 7 can anyone help
> me with the coding please? how do I make sure the number generated
> is between 1 and 7?