Java Random create random LongStream

Description

Java Random create random LongStream



import java.util.Random;

public class Main {
  public static void main(String[] args) {
    new Random().longs()
    .limit(10)/*from  w ww  .  j  a v  a 2 s . c  om*/
    .forEach(System.out::println);

  }
}



PreviousNext

Related