Ashley2708:
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 forum members are saying that you can send the 10 digit number by extracting each individual digit and sending each individual digit as an ascii character. The receiver collects up all those individual characters, and then a conversation will need to be made to get it back to a 'number' format......... that's if the receiving side needs the number in digital format.
Alternatively.... take the binary form of the number you want to send.... which might be 'N' bits in bit-length.... then that bunch of bits can be broken apart into groups of 8 bits.... so each group of 8 bits can be sent as a 'byte'. The receiving side will then have the task of reassembling the value once it receives all the relevant bytes. Sending the number in this bit pattern form is expected to be faster than the other method of sending 10 individual ascii characters (or 10 bytes).