Thanks for your help. I treid really many different things yesterday, in the end I oversaw such a "small" thing... I thought about the probability as well, but it is just a training example, important for my Labview knowleges but not important for my work. One thing I thought of would be to multiply the random number with 6.9999999 and not 6 so still this wouldn't be 100% correct but better. Thanks again for your help...was really essential.