answersLogoWhite

0

Random r = new Random9()

for(int i = 0; i<arr lenght: i++{assuming the array variables is named arr...

arr[i] = r nextlnt(2oo);

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Write a java programm to find maximum number in the given array?

class maximum{public static void main(string...args){System.out.println(max(new int[]{5,3,6,2,4,61}));}static int max(int[]a){int max=0;for(int i=0;imax)max=a[i];}return max;}}


Find large number in the given two numbers?

int max = a&gt;b?a:b; // set max to the larger of a and b


A program in c that identifies the longest word in a sentence?

#include&lt;stdio.h&gt; #include&lt;string.h&gt; #include&lt;conio.h&gt; void main() { int i,max=0,count=0,j; char str[100]; /* ={"INDIA IS DEMOCRATIC COUNTRY"}; u can use a string inside,in place of user input */ printf("\nEnter the string\n:"); gets(str); for(i=0;i&lt;strlen(str);i++) { if(!(str[i]==32)) { count++; } else { if(max&lt;count) { j=i-count; max=count; } count=0; } } for(i=j;i&lt;(j+max);i++) printf("%c",str[i]); getch(); }


Write a c program to find the sum of numbers between given limits?

int sum (int min, int max) {return (max-min+1)*(max+min)/2;}


C program to find largest word in a string?

#include&lt;stdio.h&gt; #include&lt;string.h&gt; #include&lt;conio.h&gt; void main() { int i,max=0,count=0,j; char str[100]; /* ={"INDIA IS DEMOCRATIC COUNTRY"}; u can use a string inside,in place of user input */ printf("\nEnter the string\n:"); gets(str); for(i=0;i&lt;strlen(str);i++) { if(!(str[i]==32)) { count++; } else { if(max&lt;count) { j=i-count; max=count; } count=0; } } for(i=j;i&lt;(j+max);i++) printf("%c",str[i]); getch(); }


Who makes blue max string trimmers?

Blue Max string trimmers are manufactured by the company Blue Max, which specializes in outdoor power equipment. The brand is known for offering a range of tools, including string trimmers, that are designed for both residential and professional use. Their products typically emphasize affordability and user-friendly designs.


What is the antecedent for the relative pronoun in this sentence 'This is Max WHO is from Switzerland'?

The antecedent for the relative pronoun 'who' is Max.The pronoun 'who' introduces the relative clause 'who is from Switzerland'.The relative clause 'who is from Switzerland' provides information that 'relates' to the antecedent noun 'Max'.


What is the demonstrative pronoun of this sentence 'This is Max who is from Switzerland.'?

The demonstrative pronoun in the sentence is &quot;this&quot;, which is used to point out or identify something specific, in this case, Max who is from Switzerland.


How do you punctuate watch out yelled max?

The correct sentence would be... "Watch out !" yelled Max.


Looking for a sentence for the word has?

This sentence has a certain word in it.


How do you restate this sentence What can you say is usually true of Max?

Generally, Max can be described as being consistent in his behavior or actions.


What is the secret in woozworld look for sentence starting with max?

max&amp;jenny2gether4ever iyou will have a big surprise in woozworld.. Good Luck!!