code: @Override
      public boolean shouldSendEvent(Event event) {
          double randomDouble = random.nextDouble();
          return sampleRate >= Math.abs(randomDouble);
      }
docs: Handles event sampling logic.
  
  @param event Event to be checked against the sampling logic.
  @return True if the event should be sent to the server, else False.