D
Deepu
Guest
Hi All,
Can somebody help me with a better approach to perform the random
number selection from a set of numbers than the one mentoned below.
If there are set of numbers like & i would like to get one number out
of this:
0,1,2,3,256,257.258,259,512,513,514,515,768,769,770,771
int ii;
int number;
ii = {$random(seed)} % 2;
number = 0 + {$random(seed)} % 4 + (0 + ($urandom_range(259,256)) *
ii) + (0 + ($urandom_range(515,512)) * ii) + (0 +
($urandom_range(771,768)) * ii)
Thanks for your time..
Can somebody help me with a better approach to perform the random
number selection from a set of numbers than the one mentoned below.
If there are set of numbers like & i would like to get one number out
of this:
0,1,2,3,256,257.258,259,512,513,514,515,768,769,770,771
int ii;
int number;
ii = {$random(seed)} % 2;
number = 0 + {$random(seed)} % 4 + (0 + ($urandom_range(259,256)) *
ii) + (0 + ($urandom_range(515,512)) * ii) + (0 +
($urandom_range(771,768)) * ii)
Thanks for your time..