Java Random String randomSuffix(final String name)

Here you can find the source of randomSuffix(final String name)

Description

random Suffix

License

BSD License

Declaration

public static String randomSuffix(final String name) 

Method Source Code

//package com.java2s;
/**//from   w  w  w .  jav  a 2s  .  co m
 * Copyright (C) 2009-2012 Barchart, Inc. <http://www.barchart.com/>
 *
 * All rights reserved. Licensed under the OSI BSD License.
 *
 * http://www.opensource.org/licenses/bsd-license.php
 */

public class Main {
    public static String randomSuffix(final String name) {
        return name + "-" + System.currentTimeMillis();
    }
}

Related

  1. randomstring(int lo, int hi)
  2. randomString(int stringLength)
  3. randomString(Integer len)
  4. randomString(Random r, int minCount, int maxCount)
  5. randomSubset(String[] list, int count)
  6. randomUnicodeString(Random r)
  7. Shuffle(ArrayList list, Random randomNumberGenerator)