10 digit random number generator work with uin8_t

Hi there, yes i can generate the number range with the use of the random function without issues but it uses long as the data type.

I think i need to convert the output of the random function into a string which will then be sent as the uint8_t and display using char.

The reason for not posting all my code is there is a lot and this is the section of which i have the issue.