Length and license

resRand.length
Added read-only .length property which returns the length of the current
array.

Added license headers