Java Random Int randomArray(int len)

Here you can find the source of randomArray(int len)

Description

random Array

License

Open Source License

Declaration

public static double[] randomArray(int len) 

Method Source Code

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

public class Main {

    public static double[] randomArray(int len) {
        double[] data = new double[len];
        for (int i = 0; i < len; i++) {
            // data[i] = r.nextDouble() / 10 - 0.05;
            data[i] = 0;//from  ww w .  ja  va  2 s. c  o  m
        }
        return data;
    }
}

Related

  1. randomActorId(int max)
  2. randomAlphaNum(int length)
  3. randomAlphanumeric(int count)
  4. randomAlphanumericString(int length)
  5. randomAlphaString(int length)
  6. randomArray(int min, int max, int n)
  7. randomBases(int n)
  8. randomBlock(byte[] block, int off, int len)
  9. randomByteArray(int length)