Generates random  formatted string