hello friends
can you people suggest me which one should i pick of the following two , to generate a random value for a
string array
int index = randomObject.nextInt(array.length);
or
int index = (int)(Math.random() * array.length);
i am new , so not have a lot of experience pl help
thank you