Unique string

Hello,

Is ther a way to create a uniq string in ksh and to be able to define exactly how many characters will it be?

Please, show an example of what what you want.