Thanks for the quick reply!  

Cheers,
Ron

On Sunday, May 17, 2015 at 2:05:04 PM UTC-4, William wrote:
>
> On Sat, May 16, 2015 at 8:17 PM, Ronald L. Rivest <rives...@gmail.com 
> <javascript:>> wrote: 
> > When I type 
> >     random_matrix? 
> > at the sage notebook, I get documentation that says, for example, that 
> the 
> > matrix 
> > entries will never be zero.  But they are, even in the given example. 
>  What 
> > does 
> > "and never zero" mean here? 
>
> It's definitely a mistake in the documentation.  I wrote the code that 
> generates these matrices, and there's nothing at all in there to 
> restrict to nonzero values in the given interval.    Somebody else 
> inexplicably added the nonzero business to the documentation... 5 
> years ago in this ticket: 
>
>     http://trac.sagemath.org/ticket/9803 
>
> I'll ask them to open a ticket and fix the mistake in the documentation. 
>
> And... I'm excited to see you trying Sage !   I'm a big fan of RSA :-) 
>
>  -- William 
>
> > Thanks, 
> > Ron Rivest 
> > 
> > The distribution keyword set to uniform will limit values between -2 and 
> 2, 
> > and never zero. 
> > 
> > sage: random_matrix(ZZ, 5, 5, distribution='uniform') 
> > [ 1  0 -2  1  1] 
> > [ 1  0  0  0  2] 
> > [-1 -2  0  2 -2] 
> > [-1 -1  1  1  2] 
> > [ 0 -2 -1  0  0] 
> > 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to sage-support...@googlegroups.com <javascript:>. 
> > To post to this group, send email to sage-s...@googlegroups.com 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/sage-support. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> William (http://wstein.org) 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to