ElectionTimeoutGenerator interface and random implementation