databay.inlets.random_int_inlet

class databay.inlets.random_int_inlet.RandomIntInlet(min: int = 0, max: int = 100, *args, **kwargs)[source]

databay.inlets.random_int_inlet.RandomIntInlet

Inlet that will generate a random integer within the specified range.

Parameters
  • min (int) – Lower boundary of the random range.

  • max (int) – Upper boundary of the random range.

Bases: databay.Inlet

pull(self, update)[source]

Produces a random integer within the specified range.

Parameters

update (Update) – Update object representing the particular Link update run.

Returns

Single or multiple records produced.

Return type

Record or list[Record]