Kurt Pagani wrote:
>
> Function 'random' is found in several .spad files and cannot be changed
> easily (see below, e.g. permgrps).
> Perhaps a new function random: (INT,INT) -> INT or Interval(INT) -> INT
> could be created?
For finite domains 'random' is defined to play reasonably with
other FriCAS routines. In particular, user is supposed to use
'random' from given domain and implementer can use 'random'
from Integer to implement random for given domain. So I see
little need for extra variants: users in most cases are
supposed to work at higher level and for implementers of
library functions current version is enough.
Actually, what is needed is higher level version of 'random(n)'
for other infinite domains. I wrote some time ago about
RandomChoice, that was a proposal for such functionalty.
ATM I am not decided about it, it solves some problems
but some other remain.
--
Waldek Hebisch