Random parameters and some other improvements.
More useful versions of the random functions.