Modified random generator.

Array generator now generates distinct values array.
Added test.
Added documentation.