docstr: Generate a list of Python Decimals with *none_prob* probability of
  an entry being None (or NaN if *use_nan* is true).
docstr_tok: ["Generate","a","list","of","Python","Decimals","with","*","none_prob","*","probability","of","an","entry","being","None","(","or","NaN","if","*","use_nan","*","is","true",")","."]
code: def generate_decimal_list(
      self, n, none_prob=DEFAULT_NONE_PROB, use_nan=False
  ):
      """
      Generate a list of Python Decimals with *none_prob* probability of
      an entry being None (or NaN if *use_nan* is true).
      """
      data = [
          decimal.Decimal("%.9f" % f)
          for f in self.rnd.uniform(0.0, 1.0, n)
      ]
      assert len(data) == n
      self.sprinkle(
          data,
          none_prob,
          value=decimal.Decimal("nan") if use_nan else None,
      )
      return data
  
imports: import codecs
  import decimal
  from functools import partial
  import itertools
  import sys
  import unicodedata
  import numpy
  import pyarrow
label_desc: Use image node_id 7 for calling the BuiltinsGenerator obj's underlying member method code with example usage: obj.generate_decimal_list(n, none_prob, use_nan) and returns: data