Students are hurling paint at canvases Jackson Pollock-style in a new teaching technique that is also teaching them about science and maths.