| 21 | // the stddev parameter as the standard deviation value. |
| 22 | template <> |
| 23 | void Array<complex64>::FillRandom(const complex64& stddev, const double mean, |
| 24 | const int seed) { |
| 25 | std::mt19937 g(seed); |
| 26 | std::normal_distribution<double> distribution(mean, std::real(stddev)); |
| 27 | for (int64 i = 0; i < num_elements(); ++i) { |
| 28 | values_[i] = complex64(distribution(g), distribution(g)); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | } // namespace xla |