code: private Random getRandom() {
          Random result = random.get();
          if (result == null) {
              result = new Random();
              random.set(result);
          }
          return result;
      }
docs: initialValue() method.