From 1be123a814240b00ece0f659d24f09293dea6756 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 7 Sep 2022 12:07:33 +0100 Subject: Actually call the size method --- scripts/toy/play.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/toy/play.groovy b/scripts/toy/play.groovy index c4e86a0..5635f22 100644 --- a/scripts/toy/play.groovy +++ b/scripts/toy/play.groovy @@ -102,7 +102,7 @@ } final sessions = DOMME.sessions.findAll { s -> eval(s.require ?: true) }; final probabilities = sessions.withIndex().collect { s, idx -> [idx] * s.probability }.sum(); - final session = sessions[probabilities[getRandom(probabilities.size)]]; + final session = sessions[probabilities[getRandom(probabilities.size())]]; // Change if required dress(session.phases .collect { phase -> phase.activities + phase.intervals } -- cgit v1.2.3