Change to standard random number functions.
Add instructions for using plugin.
Allow setting the random seed for testing.