Pseudo-random numbers/Xorshift star: Difference between revisions

m
→‎{{header|Raku}}: Separate BUILD and TWEAK is overkill for this instance
(→‎{{header|Wren}}: nextFloat now returns a Num rather than a BigRat. Second part quicker as a result.)
m (→‎{{header|Raku}}: Separate BUILD and TWEAK is overkill for this instance)
Line 208:
constant const = 0x2545F4914F6CDD1D;
 
submethod BUILD ( Int :$seed where * > 0 = 1 ) { $!seed = $seed }
$!seed = $seed;
 
method TWEAK { $!state = $!seed +& mask64 }
}
 
method next-int {
10,333

edits