apply logRandom only if parameters are positive, else apply random
add a test for eim from M.A.Grepl thesis