rand throws an InexactError when called on multi-dimensional DomainSets of Ints
Examlple
rand(1..10) returns a Float64 between 1 and 10
rand((1..10) × (1..10)) throws InexactError: Int64(random float)
If 1..10 is supposed to be continuous, I guess (1..10) × (1..10) should too.
Note that
typeof(1..10) is IntervalSets.ClosedInterval{Int64}
and typeof((1..10) × (1..10)) is DomainSets.Rectangle{SVector{2, Int64}}
suggesting that these are intervals of integers, so rand would maybe give an integer ? Or else, 1..10 should automatically convert it's type to float ?
randthrows an InexactError when called on multi-dimensional DomainSets of IntsExamlple
rand(1..10)returns a Float64 between 1 and 10rand((1..10) × (1..10))throwsInexactError: Int64(random float)If 1..10 is supposed to be continuous, I guess (1..10) × (1..10) should too.
Note that
typeof(1..10)isIntervalSets.ClosedInterval{Int64}and
typeof((1..10) × (1..10))isDomainSets.Rectangle{SVector{2, Int64}}suggesting that these are intervals of integers, so rand would maybe give an integer ? Or else, 1..10 should automatically convert it's type to float ?