if the random thoughts are unpleasant thay can be countered by having a pleasant daydream ready to run against them
pleasant daydreams are helpful for depression and anxiety