package javaapplication27;
import java.security.SecureRandom;
import java.util.Scanner;
public class javaApplication27 {
puplic static int facte(int number)
{
if (number<= 1)
return 1;
else
return number *facte (number -1);
}
SecureRandom randomNumbers=new SecureRandom();
@SuppressWarnings("empty-statement")
public static void main(String[] args, int counter) {
Scanner input =new Scanner (System.in);
System.out.println(" Lowest value :");
int lowestvalue=input.nextInt();
System.out.println(" highest value :");
int highesttvalue=input.nextInt();
System.out.println(" diff.betweenv value :");
int DiffBetweenvalue = input.nextInt();
System.out.println(" number of random number :");
int n=input.nextInt();
for (int i=0 ; i<n ;i++)
System.out.println(" ");
for(int counter =1 ;counter 40 ; counter++){
int facte;
facte = 1=1+randomNumbers.nextInt(6);
System.out.printf("%d",facte );
}
if (counter %5==0)
System.out.printf();
}
}
dimanche 26 novembre 2017
Write a Java method random that generates and returns a random number between 14 and 59 (using SecureRandom) [on hold]
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire