public
int
sorteia (){
List lista =
new
ArrayList () ;
lista.add (
new
Integer (
1
)) ;
lista.add (
new
Integer (
10
)) ;
lista.add (
new
Integer (
100
)) ;
lista.add (
new
Integer (
1000
)) ;
Collections.suffle ( lista ) ;
// pega qualquer indice. pegamos o primeiro por conveniência.
return
lista.get (
0
);
}