Related resources for random method in typescript