Thanks for the reply. I don't use any random numbers in my code. Each time I run the code I get the same result. In fact, sometimes I try to change my input data and still get the same result as I did with the previous data. At this stage I don't know what to think. I am certain that I'm using the right files as well.