🔒 Closed Mga lods baka pede patulong sa java

Status
Not open for further replies.

Alieson09

Forum Guru
pano gumawa ng random number??
1633231650637.webp
 
import java.util.Random; Random rand = new Random(); // Obtain a number between [0 - 49]. int n = rand.nextInt(50); // Add 1 to the result to get a number from the required range // (i.e., [1 - 50]). n += 1;
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 308
    Views
  • 3
    Participants
Last reply from:
Cer Dacs

Trending Topics

Online now

Members online
1,117
Guests online
1,342
Total visitors
2,459

Forum statistics

Threads
2,284,947
Posts
29,026,894
Members
1,219,249
Latest member
johnnysinna
Back
Top