Added improved randomizer.

Allows for randomizing with (negative) minimum value.