Invalid bounding interval [, ]
bearophile
bearophileHUGS at lycos.com
Tue Jan 24 19:50:45 PST 2012
C:
> I want to fill a ubyte array with random data.
In D ubytes are not char, they are two different types. So if you want ubytes, then use ubytes:
uniform!("[]")(ubyte.min, ubyte.max)
Regarding your error, a reduced test case:
import std.random: uniform;
void main() {
uniform!("[]")(char.min, char.max);
uniform!("(]")(char.min, char.max);
}
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list