Typescript Generate Random String In C