Javascript To Generate Random String Python Definition