Home > other >  The go language one thousand random number generation, and arranged in reverse chronological order
The go language one thousand random number generation, and arranged in reverse chronological order

Time:03-05

First Mr Into random Numbers, with a random seed, otherwise the generated random number is the same
Random Seed: rand. Seed (time) Now ()) UnixNano ())
Generate a random number code is as follows:


The reverse order of the random number below:



Part of the output is as follows:

CodePudding user response:

I thought it was the size of the array elements by value array sonar in reverse chronological order
Reverse chronological, turned out to be an array element is the ABCD DCBA bai, is in the middle of the array elements a dividing line, then the elements according to the middle point symmetry on both sides of the exchange,
What procedures do not have what problem, the problem of the LZ is?
  • Related