Am 23.10.2016 um 07:15 schrieb Waldek Hebisch:
> 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.

Regarding the last statement I'm not so sure. Considering that 'random' merely
being RANDOM()$Lisp wihout the possibility to create/save random states its use
is certainly limited. OTOH I agree that everyone knowing about RANDOM ought to
be able to write his own 'random'. At least the signature/docstring should be
adjusted (PI->NNI, not nice but according to CLHS).

> 


-- 
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 fricas-devel+unsubscr...@googlegroups.com.
To post to this group, send email to fricas-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to