RandomJ: Uniform


General Description

This plugin enables one to contaminate images with random numbers generated using a uniform random variable.

Uniform Dialog

Dialog Description

Min and Max. The parameters of the probability density function of the uniform random variable:

Uniform PDF

with α corresponding to Min and β to Max. The latter must be larger than the former.

Insertion. The random numbers can be inserted into the image either additively or multiplicatively.


Implementation Details

The generator used in this plugin is the so-called Mersenne Twister described by Matsumoto and Nishimura [1]. It is one of the strongest uniform pseudo-random number generators known to date, with a period of 2^19937 - 1. The Java implementation is my own translation of the 26 January 2002 C-version provided on the website linked above and has been validated by comparing the output of the two for different (positive and negative) integer test seeds. In the released version, the generator is initialized with a seed derived from the system's current time in milliseconds, and therefore the sequence of random numbers will be different for each run of this plugin, provided there is a time interval of at least one millisecond between the runs.


References

[1]M. Matsumoto and T. Nishimura. Mersenne Twister: A 623-Dimensionally Equidistributed Uniform Pseudo-Random Number Generator. ACM Transactions on Modeling and Computer Simulation, vol. 8, no. 1, January 1998, pp. 3-30.
[2]A. Leon-Garcia. Probability and Random Processes for Electrical Engineering. Addison-Wesley Publishing Company, Reading, MA, 1989.
Copyright © 1996 - 2012 Erik Meijering