added randomKey method to Utils