Browse Today's favorites or All time favorites.
Please Sign In or Register to share and submit your questions.
Java Queries
Complete java interview questions library
April
2008
How do I generate a random number between 0 and some integer n
First you would need to create an instance of Random class:
Random random = new Random();
Then, you can get your random number by calling:
int pick = random.nextInt(maxvalue);
This would return a value from 0 (inclusive) to maxvalue (excl
Tutorials Categories
Things your CV should not have
Your CV is your marketing brochure through which you try to sell a commodity, ie your skills to the potential buyer ie the prospective employer. The sole purpose of your CV is to fetch you an interview call. Nothing more, nothing less.