Skip to content

Commit

Permalink
feat: add random variable (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Sep 2, 2024
1 parent af97a9d commit fa787a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/kotlin/li/songe/gkd/data/RawSubscription.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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? {
Expand Down

0 comments on commit fa787a1

Please sign in to comment.