Interesting question!
The function doesn't currently allow that, it uses the same sequence of random
numbers every time -- by design: This way, if you run your program twice in a
row, it'll produce the same result.
But it wouldn't be very difficult to change that. The function is here:
https://github.com/dealii/dealii/blob/master/source/grid/grid_tools.cc#L1013-L1244
The random number generator is initialized in line 1099. It wouldn't be very
difficult to add an argument to the function that acts as a random seed and is
used in that line to seed the boost::random::mt19937 generator. Want to give
this a try and implement such a change? We'd of course be very happy to take a
patch!
Best
Wolfgang
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/