
// ShowRandom.java
// Andrew Davison, Nov 2018, ad@fivedots.coe.psu.ac.th

import java.util.Random;


public class ShowRandom
{
  public static void main(String[] args)
  {
    Random randGen = new Random();

    System.out.println("10 random integers between 0 and 100");
    for (int i = 0; i < 10; i++) {
      System.out.print(randGen.nextInt(100) + "  ");
    }
    System.out.println();

    System.out.println("\n5 random floats between 0.0f and 1.0f");
    for (int i = 0; i < 5; i++) {
      System.out.print(randGen.nextFloat() + "  ");
    }
    System.out.println();
  }
}  // end of ShowRandom class

