Had a sleepless night last night. No matter what I did I couldn’t fall asleep. I’m not sure what’s up with that? Is it the smoke in the air from the fires? I mean yeah I’m experiencing shortness of breath and wheezing because of the smoke in the air. It feels like I have something in my throat that won’t go away. It would be nice if it did go away though, I’m not sure how that’s supposed to work. It seems like I never know how this life tends to work at times. I wish I did though, that would be a good thing! Yet here I am, and I’m suffering in silence do to it all. I kept tossing and turning last night. Every time I thought I was going to fall asleep, I actually didn’t fall asleep. My back hurts too. [Wife] thinks it’s stress related, that could be the case. Eh, who knows how any of this life works most of the time? I sure as hell don’t! I need to have a good nights rest at times. I know [Wife] doesn’t sleep worth a damn either and she suffers from it. I wish that wasn’t the case. I ...
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