Random number generator
I'm building a throw dice procedure for which I copied the code exactly from a popular online tutorial (you have heard of it). I can import the lib, import java.util.Random;, and finish the rest of the code and I get an error. Something like, Random can't be used here plus a lot of junk pointing to variable.nextInt (6);. I'm guessing the random library isn't being imported.
I put it down for a while and later it was working. I checked the spelling so it was not possibly a typo. Things like that happen. Not a big deal< I know.
Btw, Java is cool.
Is there still a problem, or have you found a solution?
Yeah, nothing much going on...
It might've been junk to you but it would've been nicer if you'd shown us your code plus that 'junk' produced by the compiler.
Originally Posted by zerwik