Typescript Generate Random String In Java