diff --git a/app/src/main/kotlin/li/songe/gkd/data/RawSubscription.kt b/app/src/main/kotlin/li/songe/gkd/data/RawSubscription.kt index 2137289fb..8608df208 100644 --- a/app/src/main/kotlin/li/songe/gkd/data/RawSubscription.kt +++ b/app/src/main/kotlin/li/songe/gkd/data/RawSubscription.kt @@ -444,6 +444,7 @@ data class RawSubscription( exp.setVariable("bottom", rect.bottom.toDouble()) exp.setVariable("width", rect.width().toDouble()) exp.setVariable("height", rect.height().toDouble()) + exp.setVariable("random", Math.random()) } private fun getExpression(value: String?): Expression? {