Either it's something that I fail to see or something's wrong. Can someone explain why the last element of the generation stays 0 with the current code?
Thanks guys.
public void generateArray(int max)
{
for(int i=0;i<list.length-1;i++){//why is it that its missing a value when list.length-1?
list[i] = (int)((Math.random()*max)+1);
}
}