Search: | |||||

| ||||

Home » Forum » Java | RSS Feeds |

public class Prog3

{

public static void main (String[] args)

{

int number;

int i,random;

int userinput;

int i;

System.out.println("This program generates random

numbers between 1 and 10");

System.out.print("\nHow many random numbers to

generate(negative to stop)?");

System.out.println();

number=SavitchIn.readInt();

while (i<1 || i>10)

{

for (i=1;i<userinput;i++);

random=(int)(10*Math.random()+1);

}

i have a problem... im trying to generate randome numbers and

this code is not working for me...

am i misssing some thing?

a hint or sample code will be great thank you

Didn't find what you were looking for?
Find more on generating random numbers
Or get search suggestion and latest updates.

Related Topics:

- Help in Random Numbers
- Problem with random number in java
- HW HELP! loop, histogram, random number
- Need codes for generating random equations
- Write a script to generate a random number between 1 and 1000.
- counting the frequency of randomly generated real number
- how to generate a rondom number btween two ranges
- Converting a "Stringed" Number to a Number
- Converting a "Stringed" Number to a Number
- How to create random password for first time user in the web site
- Select random cell in list and highlight contents
- random images
- How to generate random string or character from arrays?
- Please help quick. Due tomorrow. random number array histogram!!
- sum of series of natural numbers
- prime number
- assembly program that reads an integer number (from 0 to 9).
- an assembly program that reads an integer number from the keyboard and then displays its diviso
- triangle of numbers,:-( i owe you one
- C program that takes Salesperson details such as Payroll number, Surname, Other Names, Basic Sa
- perfect number
- perfect number
- Read integer number
- sum and Multiply number and print in decimal
- Assembly program that displays numbers