vectorization bug fixed

fixed bug on multiple call of GetInterpolation and GeneraterRandom
functions