Languages
[Edit]
EN

Java - generate random number between 1 and 100

13 points
Created by:
Broncono
466

Generate random number between 1 and 100 in Java 

Edit

It can be accomplished with usage of
java.util.concurrent.ThreadLocalRandom

Example:

There are other ways to achieve it, look at this post:
https://dirask.com/q/VjoP81

and hashtag #random-min-max with methods for int, long, float, double to generate numbers in range min and max
https://dirask.com/hashtags/random-min-max

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Java - random numbers

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join