Generating 3d arrays

var randArray:Array = new Array();
for (i = 0; i < 10; i++) {
    for (j = 0; j < 10; j++) {
        randArray*[j] = Math.floor(Math.random()*4+1);
    }
}
trace(randArray[2]);

I’m trying to generate 3d arrays with these two for loops however that trace at the end simply outputs “undefined”.