List in JS, Unknown indentifier

I’m trying to make a list.

#pragma strict


var RandomNumber = new List.<int>();

I did it just the same as in http://wiki.unity3d.com/index.php?title=Which_Kind_Of_Array_Or_Collection_Should_I_Use?
but with my line unity says:
Assest/Builder.js(4,24): BCE0005: Unknown identifier: ‘List’.

import System.Collections.Generic;

import System.Collections.Generic;

You need to import it to be able to use it.

put this at the top of your script:

import System.Collections.Generic;

next time make sure to first search for what your looking for, on unity answers or google, I’m sure there is much information about this out there, so always try to avoid duplicate questions :wink: