Quantcast
Channel: Pens from Bas Groothedde
Viewing all articles
Browse latest Browse all 39

SmallPRNG in Javascript

$
0
0

See the Code - See it Full Page - See Details

A small pseudo-random number generator with a random min/max method in Javascript. This is merely an experiment, trying out bitwise operation in Javascript. I noticed I had to shift all bits to the right 0 positions to get an unsigned integer. This will probably not get the results it should get (I haven't compared it with C, C++ or PB yet), but it's a fun experiment. Check out SmallPRNG's big brother ISAAC here: http://codepen.io/ImagineProgramming/pen/CIseE/

This Pen uses: HTML, SCSS, JavaScript, and


Viewing all articles
Browse latest Browse all 39

Trending Articles