Correct me please. Creating random number

Hi there,

I can’t really see how I can help you.
Can you please explain the logic you’re trying to achieve?