@ankur: u r right. On Mon, Sep 7, 2009 at 9:36 PM, ankur aggarwal<[email protected]> wrote: > I KNow a sol for given a rand_5() function which generates 0 to 5 > and we have to find rand_7() for 0 to 7 > > could not think about it... > > > > On Mon, Sep 7, 2009 at 9:26 PM, ankur aggarwal <[email protected]> > wrote: >> >> Given a random number generator that generates numbers in the range 1 to >> 5, how can u create a random number generator to generate numbers in the >> range 1 to 7. (remember that the generated random numbers should follow a >> uniform distribution in the corresponding range) > > > >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
