added code for generating random name