在集合 {0,1} 中生成一个随机值

Generate a random value in the set {0,1}

实际上 Generate random value 输入允许我生成一个随机整数,但不是我想要的集合。

如何在集合{0,1}Pentaho Data Integration中生成一个随机值?

您可以用

生成[0..1]范围内的随机数

http://wiki.pentaho.com/display/EAI/Generate+Random+Value

然后通过 ROUND()

将其四舍五入为您的集合 {0,1} 的整数

http://wiki.pentaho.com/display/EAI/Calculator