Hi,
Unfortunately, there is no easy way to do this. While it would in
theory be easy to "just" change the data type in the representation,
there are a lot of places in Gecode that does arithmetic, and these
would need to be updated as well to the right datatype.
As for the limits not being the full range of the underlying datatype,
that would be much harder to change if it is at all possible. All
arithmetic in a constraint programming solver needs to be safe, and
Gecode relies on having symmetric domains (-Int::Limits::max ==
Int::Limits::min), and having some value outside the domain but still
part of the underlying datatype for certain operations.
With that said, I'm unsure about the use-case that you are describing
about randomization or how it would connect to a constraint
programming system.
Cheers,
Mikael
On Tue, Jun 20, 2023 at 10:36 AM Vijaya Krishna Kasula (Vijju)
<
krishna....@gmail.com> wrote:
>
> It appears that the Int::Limits::min and Int::Limits::max are under 32-bit. We have several applications with 64-bit randomization. Ex: I want to randomize 2 numbers that add to a 64-bit number. Is there a way to do that.
>
> --
> You received this message because you are subscribed to the Google Groups "Gecode" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
gecode+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/gecode/ecd01572-23e7-4ecb-ba10-fc0c46a585fbn%40googlegroups.com.
--
Mikael Zayenz Lagerkvist