Responsive Ads Here

Monday, March 30, 2015

Java – Random

Java – Random

 

import java.util.Random;
public class randoms {
    public static void main(String[] args) {
        Random  dice = new Random();
        int a;
        for(int i = 0;i<10;i++)
        {
            a=dice.nextInt(6);    
            System.out.println(a);
        }
    }
}

No comments:

Post a Comment

php4

<?php    // Start the session  session_start();  ?>  <!DOCTYPE html>  <html>  <head>       <link rel=&q...