changed random number geneation for compatability reasons with Setna group