Constant: List choose (Read) + random

Hello guys,
In the OB2, i found the (File Read), but i didnt founded the function (To choose a random line)
Please where can i find it

Example of OB1
2022-11-18 17_45_13-OpenBullet 1.4.4 Anomaly

2022-11-18 17_45_18-OpenBullet 1.4.4 Anomaly

I need to apply it in OB2

Hello @Marwen2

For your concern it would be to use this block its will choose a random item in your list based on your list.count
Capture
As you can see it’s working now the code :

BLOCK:ConstantList
  value = ["Marwen2", "WannaCry", "Bob", "James"]
  => VAR @A
ENDBLOCK

BLOCK:GetRandomItem
  list = @A
  => VAR @getRandomItemOutput
ENDBLOCK

Console.WriteLine(getRandomItemOutput);

1 Like