JS Core: Get random int