There are those who want to steal one's magickal power.
This is a code snippet that protects one's magickal power against stealing and/or tampering.
This is but first layer of defense, serious magicians should consider using more layers of defense - including spells that protects ward itself against being dispelled.
Randomness in magick.
On the one side, magick can be perceived as changing probability of something to occur.
On another side, randomness can be used in detection/divination as for example in TAROT.
How this source code works.
It's written in java, can be seen/edited/executed by clicking on below image.
When doing this, Be sure to check 'debug mode'.
20 times/second 'magical sensor' generates pseudorandom number ... and depending on 'sensivity', it determines if attack on warded magician occurs.
In case of 'debug mode on', sensivity is 1% of detecting magickal attack during each of 'detection period' (detection period is 20 times/second) - which means average detection: 1 per 5 seconds,
In case of 'debug mode off', sensivity should be custom tailored to frequency of attacks a warded magician is attacked. By default it's 1/(60*60*24*20), which means average detection: 1 per 1 day, considering detection period of 20/day.
In case of attack, hex is cast that sends attacker's mind state to buddhist animal realm for a week, and warded magician is alerted.
In this state one's thinking is dulled, reduced to fighting for food and sex.
Sending to this realm is useful for delaying ... and when - by karma law and laws of magick - energy returns to caster ... it's not so bad as when attacker would be sent to realms of hells or hungry ghosts.
Source Code.
-=- Click image to see/edit/execute source code that generates results as shown above. -=-
-=- Be sure to check 'debug mode'.