Hi Nadeem,
Have a look at the Java action "RandomString" in the CommunityCommons module. The documentation of this Java action is as follows: "Generates a random alphanumeric string of the desired length."
If I understand correctly, simply using this Java action in a microflow should allow you to do what you desire.