Corrected the code and the tests (the same error was present in the proc random-lognormal).