Generating Numbers With Certain Distribution with Boost

10 Feb
2009
10 Feb
'09
7:37 p.m.
Dear all, Is there a way to generate K numbers of integer (K = 10^6). The maximum value of the integer is 200,000 and minimum is 1. And the occurrences of this integer follows a lognormal distribution. - Gundala Viswanath

10 Feb
10 Feb
7:44 p.m.
New subject: Generating Numbers With Certain Distribution with Boost
AMDG Gundala Viswanath wrote:
Is there a way to generate K numbers of integer (K = 10^6). The maximum value of the integer is 200,000 and minimum is 1.
And the occurrences of this integer follows a lognormal distribution.
There's a floating point lognormal distribution in Boost.Random. http://www.boost.org/libs/random/random-distributions.html#lognormal_distrib... In Christ, Steven Watanabe
5972
Age (days ago)
5972
Last active (days ago)
1 comments
2 participants
participants (2)
-
Gundala Viswanath
-
Steven Watanabe