Search:

Type: Posts; User: juyew

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    4,137

    so it is the same uniform distribution and what...

    so it is the same uniform distribution and what is the diff if i write so:

    x = rand()%4+1;

    and

    x = (rand()%4+1)/RAND_MAX;


    but for program with RAND_MAX, i oways get the value of 0, is...
  2. Replies
    5
    Views
    4,137

    tq...it work so far.... but if i want the number...

    tq...it work so far....
    but if i want the number range from 3 to 200, how to do?
    bcz now i using lognorm(31.1, 0.48), but it result to me is too huge,
    tq
  3. Replies
    5
    Views
    4,137

    Visual C++ Log Normal Distribution

    hey, now i using the Visual Studio 2010 C++
    i would like to random generate a number from log normal distribution, but so far i only know to random generate a number from normal distribution by:
    ...
Results 1 to 3 of 3