Random number

i am trying to create a random number between 1 and 25 i have read though the API for the Random class' of both util and math but neither were much help. -thanks
[176 byte] By [acp26b_] at [2007-9-30 14:22:44]
# 1
Random r = new Random();int a = r.nextInt(25)+1; What's the problem with that?
Oooska at 2007-7-5 1:53:13 > top of Java-index,Administration Tools,Sun Connection...