10 digit random number generator work with uin8_t

Post the code, following forum guidelines in the "How to use this forum" post.