core: (fixes #302) Fix NormalRandomVariable cache values
Credit to Peter Barnes for finding bug and suggesting solution. Also affected the GammaRandomVariable (also fixed in this pach).
Credit to Peter Barnes for finding bug and suggesting solution. Also affected the GammaRandomVariable (also fixed in this pach).