Quote Originally Posted by stefman View Post
the method i used produces numbers less than 0 and greater than 1
I used your code to generate 1,000,000 numbers and none of them were less than 0 or greater than 1. It also doesn't make sense conceptually that you should get that error. Could you give the input ix, iy, and iz which result in this issue?