Trying to get a random number to be stored and replicated across a network

The integer that you are changing, is it replicated? If it is are you changing the value on the server and then sending it to clients the changed value? You can set the integer to rep notify which will create a function called OnRep_YourIntegerName. Now whenever you change the integer on the server this event will be called automatically on all clients with the changed value. Note that server will not execute this function locally so you have to manually call it for server.