Java Random randomData(Random random, int length)

Here you can find the source of randomData(Random random, int length)

Description

random Data

License

Open Source License

Declaration

public static byte[] randomData(Random random, int length) 

Method Source Code

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

import java.util.*;

public class Main {
    public static byte[] randomData(Random random, int length) {
        byte[] data = new byte[length];
        random.nextBytes(data);/*  www.ja v  a  2 s  .co m*/
        return data;
    }
}

Related

  1. randomAlternate(char c)
  2. randomCharacterVector(int size)
  3. RandomCode()
  4. randomCode()
  5. randomCSeq()
  6. randomDigit()
  7. randomDoubleArray(int size)
  8. randomElement(List list, Random random)
  9. randomElement(T[] items)