code: def test_random_scrambling_matrices(self):
      dim = 6
      num_digits = 3
      seed = (2, 3)
  
      actual = qmc.random_scrambling_matrices(
          dim, num_digits, seed, validate_args=True
      )
  
      power = tf.constant(num_digits)
      minval = qmc.utils.exp2(power - 1)
      maxval = qmc.utils.exp2(power)
  
      with self.subTest("Shape"):
          self.assertEqual(actual.shape, (dim, num_digits))
      with self.subTest("DType"):
          self.assertEqual(actual.dtype, tf.int32)
      with self.subTest("Max Value"):
          self.assertAllLess(actual, maxval)
      with self.subTest("Min Value"):
          self.assertAllGreaterEqual(actual, minval)
  
file_path: tf-quant-finance/tf_quant_finance/math/qmc/digital_net_test.py
imports: import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 3 for calling the DigitalNetTest obj's underlying member method code with example usage: obj.test_random_scrambling_matrices() without return types