Control of behavioural strategies for capricious environments