is there a way to use Math.random and only request odd integers??? this is the code i use for n as any random number...
Code:n = (int)Math.floor(Math.random()*50+1);
but i want n to be odd each time...
any suggestions
thanks in advance annie![]()
|
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |