message: [XLA] Make FillRandomDouble method that can allow for better creation of random
  bool arrays.
diff: @@ -289,15 +289,21 @@ class Array {
  }
  // Fills the array with random normal variables with the specified mean.
  - void FillRandom(const T& stddev, const double mean = 0.0,
  - const int seed = 12345) {
  + void FillRandom(const T& stddev, double mean = 0.0, int seed = 12345) {
  + FillRandomDouble(static_cast<double>(stddev), mean, seed);
  + }
  +
  + void FillRandomDouble(double stddev, double mean = 0.0, int seed = 12345) {
  std::mt19937 g(seed);
  - std::normal_distribution<double> distribution(mean,
  - static_cast<double>(stddev));
  + std::normal_distribution<double> distribution(mean, stddev);
  for (int64 i = 0; i < num_elements(); ++i) {
  + if constexpr (std::is_same<T, bool>()) {
  + values_[i] = distribution(g) > 0.0;
  + } else {
  values_[i] = static_cast<T>(distribution(g));
  }
  }
  + }
  // Sets all the values in the array to values specified in the container.
  template <typename Container = std::initializer_list<T>>
  