You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/specs/stdlib_stats_distribution_uniform.md
+24-12
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Return a randomized rank one array of the input type.
36
36
37
37
```fortran
38
38
program demo_shuffle
39
-
use stdlib_stats_distribution_PRNG, only : random_seed
39
+
use stdlib_random, only : random_seed
40
40
use stdlib_stats_distribution_uniform, only : shuffle
41
41
implicit none
42
42
integer :: seed_put, seed_get, i
@@ -79,14 +79,16 @@ Without argument the function returns a scalar standard uniformly distributed va
79
79
80
80
With single argument `scale` of `integer` type the function returns a scalar uniformly distributed variate of `integer` type on [0,scale]. This is the standard Rectangular distribution.
81
81
82
-
With single argument `scale` of `real` or `complex` type the function returns a scalar uniformly distributed variate of `real` or `complex` type on [0, scale].
82
+
With single argument `scale` of `real` or `complex` type the function returns a scalar uniformly distributed variate of `real`type on [0, scale]or `complex` type on [(0, 0i), (scale, i(scale))].
83
83
84
-
With double arguments `loc` and `scale` the function returns a scalar uniformly distributed random variates of `integer`, `real` or `complex` type on [loc, loc+ scale] dependent of input type.
84
+
With double arguments `loc` and `scale` the function returns a scalar uniformly distributed random variates of `integer` or `real`type on [loc, loc + scale], or `complex` type on [(loc, i(loc)), ((loc + scale), i(loc + scale))], dependent of input type.
85
85
86
86
With triple arguments `loc`, `scale` and `array_size` the function returns a rank one array of uniformly distributed variates of `integer`, `real` or `complex` type with an array size of `array_size`.
87
87
88
88
For `complex` type, the real part and imaginary part are independent of each other.
89
89
90
+
Note: the algorithm used for generating uniform random variates is fundamentally limited to double precision.
0 commit comments