-
Notifications
You must be signed in to change notification settings - Fork 1
Description
It should be possible to request numeric or character values from a given interval or range. See #1 for possible changes to the way types of values are requested, but assuming it is closed as completed, potential ways to specify ranges are:
$ randical type f32 -r -1,1 # a random 32-bit floating value between -1 and +1
$ randical type char -r a,Z -n 4 # 4 random ascii alphabetical character, possibly both cases
One potential question is: how are half-intervals specified? By default, floating values are uniformly sampled from between the half-open interval [0, 1), meaning that the maximum value is epsilon less than 1.0. Should every floating interval be half-open? Should it be closed (includes its endpoints) when requesting a non-standard interval? Are integer or character intervals expected to be fully closed? Should the open/closedness of it an interval be configurable with a flag, and if so, how might that look?