Script to randomly select manual state