It’s a life we live, that’s what’s important in this life I think, it’s the best possible outcome at least. If we don’t understand that much about life, then what are we supposed to do about it? I mean, come on now. We’re meant to live and see what’s out there, aren’t we? One would think so! If we can’t do that, then we’re lost souls on this river, or ocean even and we cannot get past it all. We are lost at sea as it were cast about the waves unable to get past whatever it is we’re meant to get past. So, let’s live life to its fullest. Don’t overthink things, don’t allow yourself to become corrupt in such thinking. Supposedly not everything is black and white, I’m not sure how that works exactly. I wish I could have a handle on it all, but I don’t know how that tends to work. So I forget whatever is meant to be and I will understand it as it’s meant to come to me, if at all.
Here's how we generate a random number in Java. It's quite simple. First we import java.util.Random. Then we call that class and grab the next int with an upper bound of 25. That is to say we pick a number from zero to twenty-five. It cannot go below zero it cannot go above twenty-five.
import java.util.Random;
public class RandomNumber {
public static void main(String[] args) {
Random rand = new Random();
int int_random = rand.nextInt(25);
System.out.println(int_random);
}
}
Comments
Post a Comment