mathadapt function to generate normal distributed variables