Solved! Generates a random number, then encodes that number as speakable data and decodes it back to a number. This implementation could benefit for more bitwise operation and less string manipulation however.