sendGossipToRandomEndpoint(data, endpoints) {
		if (endpoints.length == 0) return;

		const ep =
			endpoints.length == 1
				? endpoints[0]
				: endpoints[Math.floor(Math.random() * endpoints.length)];
		if (ep) {
			const packet = new P.Packet(P.PACKET_GOSSIP_REQ, ep.id, data);
			this.publish(packet).catch(() => {
				this.logger.debug(`Unable to send Gossip packet to ${ep.id}.`);
			});

			if (this.GOSSIP_DEBUG)
				this.logger.info(
					kleur.bgYellow().black(`----- REQUEST ${this.nodeID} -> ${ep.id} -----`),
					packet.payload
				);
		}
	}
Send a Gossip request packet to a random endpoint

@param {Object} data
@param {Array} endpoints