class_docstr: This is a medium test due to the moments computation taking some time.
class_docstr_tok: ["This","is","a","medium","test","due","to","the","moments","computation","taking","some","time","."]
code: def testDistinct(self):
      for dt in dtypes.float16, dtypes.float32, dtypes.float64:
          sampler = self._Sampler(1000, 2.0, 1.0, dt)
          x = sampler()
          y = sampler()
          # Number of different samples.
          count = (x == y).sum()
          count_limit = 20 if dt == dtypes.float16 else 10
          self.assertLess(count, count_limit)
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.kernel_tests.random import util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 11 for calling the RandomGammaTest obj's underlying member method code with example usage: obj.testDistinct() without return types