Ok thanks, I'll try to implement it differently, but I really like the concept of this random function ;)