<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 27, 2015 at 3:11 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
> On Aug 27, 2015, at 1:58 PM, Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>> wrote:<br>
><br>
> Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> writes:<br>
><br>
>> Ah, you're right.<br>
>><br>
>> Would you consider this a decent hash?<br>
>><br>
>> PetscScalar v = ((PetscScalar)((79943*idx)%6871) - 3435.)/3435. +<br>
>> ((PetscScalar)((7919*idx)%829) - 415.)/415.;<br>
><br>
> Still bullshit. Plot this and you'll see that there are lots of<br>
> patterns and it's just not very rough at all. Try grid sizes of 48, 59,<br>
> 64, 74, 75, 80, 85 to name a few. (I looped over some grids in Octave.)<br></span></blockquote><div><br class="">And orthogonal to the high modes of say the Laplacian I assume,</div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">
> This is a fools errand.</span> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">
><br>
>> I thought drand48 has been taken off the table because of Windows. If it's<br>
>> not I can use that.<br>
><br>
> Use drand48,<br>
<br>
</span> Don't use drand48 directly; use PetscRandom. Matt promised to fix up PetscRandom to use it by default and work on all systems so all you need to do is use PetscRandom everywhere.<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><font color="#888888"><br>
Barry<br>
</font></span><div class=""><div class="h5"><br>
> it's very simple.<br>
><br>
> <a href="http://pubs.opengroup.org/onlinepubs/007908799/xsh/drand48.html" rel="noreferrer" target="_blank">http://pubs.opengroup.org/onlinepubs/007908799/xsh/drand48.html</a><br>
<br>
</div></div></blockquote></div><br></div></div>