code: def gen_data():
      floatA = []
      intA = []
      sizeMat = range(
          0, 30
      )  # use to generate data of values 0, +/- 2^0 to +/1 2^64
      lowBoundF = -100000
      upperBoundF = -1 * lowBoundF  # 2 million rows
      upperBoundL = pow(2, 35)
      lowBoundL = upperBoundL - 100000
      numZeros = 0
      numNans = 0  # generate Nans
      numInfs = 500
      numRep = 2  # number of times to repeat array
      csvFile = "/Users/wendycwong/temp/TopBottomNRep4.csv"
      fMult = 1.1
  
      fintA = []
      ffloatA = []
      for ind in range(0, 1000):
          floatA = []
          intA = []
          genRandomData(intA, floatA, sizeMat)
          fintA.extend(intA)
          ffloatA.extend(floatA)
  
      shuffle(fintA)
      shuffle(ffloatA)
      bottom20FrameL = h2o.H2OFrame(python_obj=zip(fintA))
      bottom20FrameF = h2o.H2OFrame(python_obj=zip(ffloatA))
      h2o.download_csv(
          bottom20FrameL.cbind(bottom20FrameF),
          "/Users/wendycwong/temp/smallIntFloats.csv",
      )
  
      genStaticData(
          intA, floatA, upperBoundL, lowBoundF, upperBoundF, fMult
      )
      # save the correct sequence before shuffling for comparison purpose
      tempL = intA[
          0 : int(round(len(intA) * 0.2))
      ]  # comes in decreasing value
      tempF = floatA[
          0 : int(round(len(floatA) * 0.2))
      ]  # comes in decreasing value
      # save the correct sequence before shuffling for comparison purpose
      bottom20FrameL = h2o.H2OFrame(python_obj=zip(tempL))
      bottom20FrameF = h2o.H2OFrame(python_obj=zip(tempF))
      h2o.download_csv(
          bottom20FrameL.cbind(bottom20FrameF),
          "/Users/wendycwong/temp/Bottom20Per.csv",
      )
  
      tempL = intA[int(round(len(intA) * 0.8)) : len(intA)]
      tempL.sort()
      tempF = floatA[int(round(len(floatA) * 0.8)) : len(floatA)]
      tempF.sort()
      bottom20FrameL = h2o.H2OFrame(python_obj=zip(tempL))
      bottom20FrameF = h2o.H2OFrame(python_obj=zip(tempF))
      h2o.download_csv(
          bottom20FrameL.cbind(bottom20FrameF),
          "/Users/wendycwong/temp/Top20Per.csv",
      )
  
      # repeat the columns a few times to seriously test the algo with duplicated data.
  
      for val in range(0, numRep):
          intA.extend(intA)
          floatA.extend(floatA)
  
      shuffle(intA)  # randomly shuffle the indices
      shuffle(floatA)  #
  
      intFrame = h2o.H2OFrame(python_obj=zip(intA))
      floatFrame = h2o.H2OFrame(python_obj=zip(floatA))
      h2o.download_csv(intFrame.cbind(floatFrame), csvFile)
  
file_path: h2o-3/scripts/gen_numerical_data.py
imports: import sys
  import h2o
  from random import randint
  from random import uniform
  from random import shuffle
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: gen_data() without return types