Fixed random generator.
Fixed random generator.#