- set rb 0x[randbyte][randbyte]
- if {
- $rb / 65536.0 >
- 1.0 / (($ch(${thing}every) - $ch(minint)*0.001) * $ch(scale))
- } {
- debug "maybechange $thing rb=$rb no"
- return 0
+ if {$force} {
+ debug "maybechange $thing forced ..."
+ } else {
+ set rb 0x[randbyte][randbyte]
+ if {
+ $rb / 65536.0 >
+ 1.0 / (($ch(${thing}every) - $ch(minint)*0.001) * $ch(scale))
+ } {
+ debug "maybechange $thing rb=$rb no"
+ return 0
+ }
+ debug "maybechange $thing rb=$rb yes ..."