menghasilkan nomor acak
public int getRandomNumber(int min, int max) {
return (int) ((Math.random() * (max - min)) + min);
}
Amused Alligator
public int getRandomNumber(int min, int max) {
return (int) ((Math.random() * (max - min)) + min);
}
function randomInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}