Hi Chri,

On 22. Apr, 2015, at 22:50, Christophe Gragnic <christophegrag...@gmail.com> 
wrote:

 . .
> 
> Now the question. I found discrepancies between PicoLisp:
> : (rand 1 1000)
> -> 1
> : (rand 1 1000)
> -> 934
> : (bye)
> 
> And Ersatz
> : (rand 1 1000)
> -> 1
> : (rand 1 1000)
> -> 967
> : (bye)
> 
> I tried to inspect the source for getting some explanation with no luck.
> PicoLisp
> https://code.google.com/p/picolisp/source/browse/src/big.c#1213
> Ersatz:
> https://code.google.com/p/picolisp/source/browse/ersatz/fun.src#3325
> Is there a reason for those different behaviours ?
> 
> Last thing (mostly for Jon), I read that the PicoLisp generator is
> a 64-bit linear congruential random generator (both pil64 and pil32)
> with the multiplier 6364136223846793005.
> I'd like to implement this generator for EmuLisp. Any advice ?
> Any objection ?
> 
> 
> chri

Feel free to give it a try. As EmuLisp uses JavaScript numbers, 
6364136223846793005 is too many digits, but you may find a way around it.

/Jon--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to