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
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.