I have a function which takes 2 strings, say userName and password as parameters. I need to generate a random user id with these 2 strings as input. Can anyone suggest a solution ?
The name of your function might reveal a problem: if you intend to identify users by this string, you might have a problem when a user wants to change his password... Either it is badly named or you have a serious design problem.
id