Java Random randomCSeq()

Here you can find the source of randomCSeq()

Description

Generates a random long number

License

Open Source License

Declaration

public static Long randomCSeq() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*w w  w  .  ja  v  a2s .co  m*/
    * Generates a random long number
    **/
    public static Long randomCSeq() {
        int cseq = (new Random()).nextInt();
        if (cseq < 0)
            cseq = -cseq;
        return new Long(cseq);
    }
}

Related

  1. randomAlpha()
  2. randomAlternate(char c)
  3. randomCharacterVector(int size)
  4. RandomCode()
  5. randomCode()
  6. randomData(Random random, int length)
  7. randomDigit()
  8. randomDoubleArray(int size)
  9. randomElement(List list, Random random)