@trdant,
is non-linear random number different from general random number?
On Sun, Jun 27, 2010 at 9:36 AM, Anurag Sharma <[email protected]>wrote:
> int getNum(){
> int arr[]={104,105,106,108};
> return arr[(int)(Math.random()*4)];
> }
>
> Anurag Sharma
>
>
>
> On Sat, Jun 26, 2010 at 8:43 PM, trdant <[email protected]> wrote:
>
>> I have the following sequence of integers: 104,105,106,108 and need to
>> write a Java statement to randomly produce one of these numbers. I
>> basically need a non-linear random number generator. Any ideas?
>>
>> Travis
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<algogeeks%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
--
Thanks,
Chakravarthi.
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.