I think the RNDX function is making something weird. Have you tested that function alone?