There is a method in HazelcastTestSupport.randomString