Oldes / Rebol-wishes

Repository for keeping Rebol related wishes out of issues
0 stars 0 forks source link

Add a /RANGE refinement to RANDOM #3

Open Siskin-Bot opened 4 years ago

Siskin-Bot commented 4 years ago

Submitted by: Ladislav

Currently, it is not possible to define an arbitrary range for random. Examples:

, etc. The problem is that this way it is impossible to define a "full 64-bit range", since the largest range one can obtain is from the minimal integer to -1, i.e., 63 random bits at most. To obtain a full 64-bit range it would be useful to write, e.g.:

random/range to integer! #{8000000000000000} to integer! #{7fffffffffffffff}

Imported from: https://github.com/rebol/rebol-issues/issues/2260

Comments:


Ladislav added the Type.wish on Feb 8, 2016