Improve randomness when generating board from template
