www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - uniform()

reply Jun <blings naver.com> writes:
Does anyone knows how can I set the boundary of uniform()?

I got an error with "uniform("[]", 0, 10);"
Jan 06 2011
parent "Simen kjaeraas" <simen.kjaras gmail.com> writes:
Jun <blings naver.com> wrote:

 Does anyone knows how can I set the boundary of uniform()?

 I got an error with "uniform("[]", 0, 10);"
The documentation seems a bit weird on uniform, yes. The correct way is: uniform!"[]"( 0, 10 ) -- Simen
Jan 06 2011