added random number generator (well sort of) and then added random delays to avoid packet clashes
added random delay and tested code - appears to be working