@@ -0,0 +1,1136 @@
+/**%0A * %0A * Sample for in class%0A * %0A * @pmcampbell%0A * @version 2016-11%0A * %0A **/%0Apublic class Vegas %7B%0A  public static void main(String%5B%5D args) %7B%0A    // test toss with stubs for dice and coin flip%0A    System.out.println(%22test for dice%22);%0A    System.out.println(%22toss %22+ toss(1,6));%0A    System.out.println(%22toss %22+ toss(1,6));%0A    System.out.println(%22toss %22+ toss(1,6));%0A    System.out.println(%22toss %22+ toss(1,6));%0A    System.out.println(%22toss %22+ toss(1,6));%0A    System.out.println(%22toss %22+ toss(1,6));%0A    System.exit(0);%0A    System.out.println(%22test for coin flip%22);%0A    %0A    System.out.println(%22toss %22+ toss(1,2));%0A    System.out.println(%22toss %22+ toss(1,2));%0A    System.out.println(%22toss %22+ toss(1,2));%0A    %0A  %7D  // main()%0A  /**%0A   generate random number%0A   @param int min    minimum of range for random %0A   @param int max    maximum of range for random %0A   @return int  the random number%0A   **/ %0A  public static int toss(int min, int max) %7B%0A    int scalingFactor, randomNumber;%0A    scalingFactor = max - min +1;%0A    randomNumber = (int)(Math.random() * scalingFactor) + min;%0A    return randomNumber; %0A    %0A  %7D // toss%0A  %0A  %0A%7D // Vegas%0A%0A

create file