Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Using JAVA applet, how can i generate random numbers in range between -100 and 100?

0
Posted

Using JAVA applet, how can i generate random numbers in range between -100 and 100?

0

You could use deon.. applet, but you could, also, get a random number between 0 and 200, then subtract 100, to get the range from -100 to 100! (no need to use twice the random class) => return String.format( “%5.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123