Java Random create random DoubleStream

Description

Java Random create random DoubleStream


import java.util.Random;

public class Main {
  public static void main(String[] args) {
    new Random().doubles()
    .limit(10)/*from   ww w  . ja  v  a2  s  .  co m*/
    .forEach(System.out::println);

  }
}



PreviousNext

Related