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
I need to apply it in OB2
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
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
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);