added and tested randomcode generator for guid