I play 40k solo. I found a decent system to do random actions for each of the 4 units types in 40k. These types are Shooty units, Melee units, units that move and fire but avoid melee. Hybrid which are units that fire and charge if within range. I play 1700 armies against and AI of 2000 pts.
Works really well.