modify randGenerate function to increase '2' show  times