Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

durrrrrr I R retard!

Name: your mom 2007-10-08 11:39

hay guise!
I'm using java and have this method in a class that does:

  public static int[] randomArray(int n) {
    int a=10;
    int i=0;
    int[] temp=new int[n];
    while(i<temp.length) {//a while loop to determine the values in each
            //position of the array
        double r=Math.random();//a random number in [0,1)
        temp[i]=randomInt(10);//if a is in [0,1), then ra is in [0,ra).
                             //So, take the floor of ra and then add 1.
        System.out.println(temp[i]);
        i++;
    }
    return temp;
  }

and I call the ArrayHelp.randomArray(100); so how do I copy the contents from the method and save it in a array?

Name: Anonymous 2007-10-08 14:12

>>6

You don't understand this copy/pasta.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List