commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Sterijevski <gsterijev...@gmail.com>
Subject Re: [math] MersenneTwister question
Date Sat, 10 Sep 2011 04:44:03 GMT
Added short comment. -Greg

On Tue, Aug 30, 2011 at 5:37 AM, sebb <sebbaz@gmail.com> wrote:

> On 29 August 2011 07:11, Greg Sterijevski <gsterijevski@gmail.com> wrote:
> > My apologies, I was looking at the original c code and neglected to
> notice
> > the cast.
>
> Perhaps add a comment to the cast to make it clearer?
>
> > On Mon, Aug 29, 2011 at 12:56 AM, Greg Sterijevski
> > <gsterijevski@gmail.com>wrote:
> >
> >> Yes, you seem to have a good point. My bad.
> >>
> >> On Mon, Aug 29, 2011 at 12:50 AM, Ted Dunning <ted.dunning@gmail.com
> >wrote:
> >>
> >>> Why?
> >>>
> >>> Isn't that what casting as an (int) does?
> >>>
> >>> On Sun, Aug 28, 2011 at 10:17 PM, Greg Sterijevski
> >>> <gsterijevski@gmail.com>wrote:
> >>>
> >>> > While probably not a big deal, shouldn't the initial element in the
> >>> array
> >>> > mt
> >>> > be 'anded' by 0xffffffffL?
> >>> >
> >>> > mt[0]= (int) longMT & 0xffffffffL;
> >>> >
> >>>
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message