public static String rightJustify(long n) {
    // There's probably a better way to do this...
    String field = "         ";
    String num = Long.toString(n);
    if (num.length() >= field.length()) {
      return num;
    }
    StringBuilder b = new StringBuilder(field);
    b.replace(b.length() - num.length(), b.length(), num);
    return b.toString();
  }
Unsynchronized version of java.util.Random algorithm.
geode-junit/src/main/java/org/apache/geode/internal/util/concurrent/cm/LoopHelpers.java