#Hello just a quick yes or no question
1 messages · Page 1 of 1 (latest)
This code will give me an output from 0-10 right? It won't for some reason skip 10 or zero because I need to put -1 or +1 somewhere? 
int[] rannum = new int[11];
rannum[0] = 0;
rannum[1] = 1;
rannum[2] = 2;
rannum[3] = 3;
rannum[4] = 4;
rannum[5] = 5;
rannum[6] = 6;
rannum[7] = 7;
rannum[8] = 8;
rannum[9] = 9;
rannum[10] = 10;
some = rannum[Random.Range(0, rannum.Length)];
num.text = some.ToString(); ;
what is your question? what does this do currently
Never mind everything works. Sorry 
also you can just do
for(int i = 0; i < rannum.Length; i++)
{
rannum[i] = i;
}
instead of setting all of them to 0,1,2,3 etc