Intialiser un tableau aléatoirement en java

Salut tous le monde
je cherche une méthode pour initialiser tout un tableau d'entier ou bien boolean de façon aléatoire (nombres qq).
en c il existe une méthode pour avoir un nombre qq exp:
srand(time(NULL));
x=rand()%54 ;
on aura un x compris entre 1 et 54
je cherche quelque chose qui ressomble a ça en java
merci en avance.
Configuration: Windows XP
Firefox 2.0.0.1

2 réponses