You should make use of the robots API and investigate `msg.random`