Please attach a test project that replicates this problem. Also, specify what is in the resource? You can attach the project and the file for the resource here or in a forum PM.
Select "Mix Lines" in the resource, that way all the lines are mixed and thus it will have a random line. Or you can use javascript to mix the array list using function shuffle to get a better constant randomization. I believe there's also the option "Shuffle List" under the "List" option
@yourfriendkarol Please be more specific on what you are going to achieve. Resources in BAS are very powerful but somewhat limited on the other hand. In total I spent few hours on github trying to understand if using a resource would be good for my this or other problem.