code: def randtuple(maxprec, maxexp):
      n = randrange(100)
      sign = randrange(2)
      coeff = ndigits(maxprec)
      if n >= 95:
          coeff = ()
          exp = "F"
      elif n >= 85:
          coeff = tuple(map(int, str(ndigits(maxprec))))
          exp = "nN"[randrange(2)]
      else:
          coeff = tuple(map(int, str(ndigits(maxprec))))
          exp = randrange(-maxexp, maxexp)
      return (sign, coeff, exp)
  
imports: from random import randrange, sample
  from fractions import Fraction
  from randfloat import un_randfloat, bin_randfloat, tern_randfloat
label_desc: Use image node_id 15 for calling a global function with example usage: randtuple(maxprec, maxexp) and returns: sign,  coeff,  exp