code: def bindigits(prec):
      z = 0
      for i in range(prec):
          z += randrange(2) * 10**i
      return z
  
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 39 for calling a global function with example usage: bindigits(prec) and returns: z