Did you try Googling "java random numbers"?