Adds proto serialization to Random class with prototest example