random int and random string functions