Do something randomly in game time to time (like scratching)

Use Set Timer and plug a random float into it.

Then use conditionals such as “Is player in range” to determine whether another set timer is scheduled after the last executes.