lognormal code run