added str_random funciton.