added shim
added rand and getRandomArray