Hitachi Vantara Pentaho Community Wiki
Child pages
  • Generate Random Value
Skip to end of metadata
Go to start of metadata

Description

This step generates random numbers, integers, strings and even UUID

Version

This step was first introduced in version 3.1.0-RC1 (PDI-1040)

Options

Property

Description

Name

The name of the new field that will contain the random value

Type

The type of data you want to get back:

  • Random number : generates a random number between 0 and 1
  • Random integer : generates a random 32-bit integer
  • Random string : generates a random string based on a 64-bit long random value
  • Universally Unique Identifier (UUID)
  • Universally Unique Identifier type 4 (UUID4)
  • Random Message Authentication Code (HmacMD5)
  • Random Message Authentication Code (HmacSHA1)

Example

The following example is also available in the samples/transformations folder of the Kettle distribution under the name

Generate random value - all usecases.ktr


  • No labels