10 digit random number generator work with uin8_t

How do you expect to get help with code that you can't bother to post?

Posting someone else's working code is a complete waste of your and our time.