Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- public class RandomExample {
- public static void main(String[] args) {
- Random rndNum = new Random();
- double randomDouble = rndNum.nextDouble();
- System.out.println("Random Number: " + randomDouble);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment