docstr: Tests samples for the randomized Halton sequence.
docstr_tok: ["Tests","samples","for","the","randomized","Halton","sequence","."]
code: def test_halton_randomization_params(self):
      """Tests samples for the randomized Halton sequence."""
      dtype = np.float32
      num_samples = 10000
      # Set up randomization parameters (this is an optional arg)
      randomization_params = tff.math.random.halton.sample(
          2, num_samples, randomized=True, seed=42
      )[1]
      sample = self.evaluate(
          tff_rnd.uniform(
              dim=2,
              sample_shape=[num_samples],
              random_type=tff_rnd.RandomType.HALTON_RANDOMIZED,
              randomization_params=randomization_params,
              dtype=dtype,
          )
      )
      np.testing.assert_array_equal(sample.shape, [num_samples, 2])
      self.assertArrayNear(np.mean(sample, axis=0), [0.5, 0.5], 1e-2)
  
file_path: tf-quant-finance/tf_quant_finance/math/random_ops/uniform_test.py
imports: import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 4 for calling the UniformTest obj's underlying member method code with example usage: obj.test_halton_randomization_params() without return types