Alea.php is a pure PHP port of the JavaScript alea.js seedable pseudo-random number generator library.

edit