Random lib for JavaScript