Simonefleek / Studies-

0 stars 0 forks source link

Java.util.Random; Practice #1

Open Simonefleek opened 6 months ago

Simonefleek commented 6 months ago

Import java.util.Random public class Main { public static void main(String[] args) {

Random random = new Random(); int x = random.nextInt();

System.out.println(x); } }

Simonefleek commented 6 months ago

import java.util.Random; public static void main (String [] args); Randon random = new Random(); double y = random.nextDouble): System.out.println(y);