Java Program to generate Random Number using Match class
RandomNumber.java
import java.util.Random;
/* Code From Learnoset - Learn Coding Online.
Download Learnoset App from PlayStore to learn coding,
projects, algorithms, error handling
*/
// Java Program to generate Random Number using Match class
public class RandomNumber {
public static void main(String args[]) {
/* 'Math' class is a pre-defined class in java library
this class is used while performing mathematical operations*/
// Generating random numbers
System.out.println("1st Random Number: " + Math.random());
System.out.println("2nd Random Number: " + Math.random());
}
}
Projects with Source Code + Video Tutorials
You can download our Java and Android Studio Projects with Source Code and Video Tutorials.
![Firebase-Push-Notifications-|-Background-Notification](https://learnoset.com/Learnoset/Projects/FirebasePushNoti/firebase_push_notification.png)
Firebase Push Notifications | Background Notification
![Sound-Recorder-App-in-Android-Studio-----------](https://learnoset.com/Learnoset/Projects/SoundRecorder/audio_recording.png)
Sound Recorder App in Android Studio
![Simple-Music-Player-App-for-Android-(Offline-Version)](https://learnoset.com/Learnoset/Projects/MusicPlayer/thumnail.jpg)
Simple Music Player App for Android (Offline Version)
If you have any Questions or Queries
You can mail us at info.learnoset@gmail.com
Follow us to learn Coding and get in touch with new Technologies.