unit-threaded ~master (2021-10-11T15:13:26Z)
Home
Dub
Repo
Gen
unit_threaded
randomized
gen
Undocumented in source.
struct
Gen
(T, T low = minimum!T, T high = maximum!T)
struct
Gen
(T, T low = 0, T high = 6.022E23)
struct
Gen
(T, size_t low = 0, size_t high = 32)
struct
Gen
(T, size_t low = 1, size_t high = 1024)
struct
Gen (
T
size_t
low
= 1
size_t
high
= 1024
)
if
(
from
!"std.range.primitives".
isInputRange
!
T
&&
!
from
!"std.traits".
isSomeString
!
T
) {
import
std
.
traits
:
Unqual
,
isIntegral
,
isFloatingPoint
;
;
import
std
.
range
:
ElementType
;
;
import
std
.
random
:
Random
;
;
alias
Value
=
T
;
alias
E
=
Unqual
!(
ElementType
!
T
)
;
T
value
;
Gen
!
E
elementGen
;
T
gen
(Random rnd);
}
struct
Gen
(T)
struct
Gen
(T, T low = minimum!T, T high = maximum!T)
struct
Gen
(T)
Alias This
value
Members
Aliases
E
alias
E
=
Unqual
!(
ElementType
!
T
)
Undocumented in source.
Value
alias
Value
=
T
Undocumented in source.
Functions
gen
T
gen
(Random rnd)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
elementGen
Gen
!
E
elementGen
;
Undocumented in source.
value
T
value
;
Undocumented in source.
Meta
Source
See Implementation
unit_threaded
randomized
gen
mixin templates
GenNumeric
structs
Gen
GenASCIIString
templates
isGen