with equal probability
On Tue, Feb 28, 2012 at 5:28 AM, Prakash D wrote:
> i've another doubt. what to do when I need to generate a random long long?
>
> On Mon, Feb 27, 2012 at 9:07 PM, Don wrote:
>> For instance, if RANDMAX= 32768, then
>>
>> x = rand() % 2;
>>
>> is twice as likely to res
i've another doubt. what to do when I need to generate a random long long?
On Mon, Feb 27, 2012 at 9:07 PM, Don wrote:
> For instance, if RANDMAX= 32768, then
>
> x = rand() % 2;
>
> is twice as likely to result in the value 10,000 as the value 15,000.
> This is because there are two output v
@dave +1.. :)
On Mon, Feb 27, 2012 at 10:55 AM, karthikeya s wrote:
> oh my bad.really nice concept+1 dave.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.