From 0e1d2e4bb17265bb94632d1bf7689c5686069cb6 Mon Sep 17 00:00:00 2001 From: vexorian Date: Tue, 4 Aug 2020 22:38:44 -0400 Subject: [PATCH] Tweaked Flex random algorithm AGAIN --- src/helperFuncs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helperFuncs.js b/src/helperFuncs.js index bbac0aa..39faf18 100644 --- a/src/helperFuncs.js +++ b/src/helperFuncs.js @@ -219,7 +219,7 @@ function pickRandomWithMaxDuration(channel, list, maxDuration) { //30 minutes is too little, don't repeat it at all } if (timeSince >= D) { - let w = Math.pow(clip.actualDuration, 1.0 / 8.0); + let w = Math.pow(clip.actualDuration, 1.0 / 4.0); n += w; if ( n*Math.random() < w) { pick1 = clip;