I am starting to play around with Jolie I was looking for a way to randomise an index What include do I need to use, can you create a random integer number?
Thanks for the question and interest in Jolie.
Here my simple code
include "math.iol"
include "console.iol"
main{
random@Math()(randomResult);
randomIndex= int (randomResult*10); // 10 is the maximum index size
println@Console(randomIndex)()
}
I hope this helps B