Little Problem with the random function

Thanks. It worked
I tried that for hours