xtd 0.2.0
Loading...
Searching...
No Matches

◆ sample()

virtual double xtd::random::sample ( ) const
protectedvirtual

Returns a random number between 0.0 and 1.0.

Returns
A double-precision floating point number greater than or equal to 0.0, and less than 1.0.
Remarks
To produce a different random distribution or a different random number generator principle, derive a class from the random class and virtual the sample method.