add getState() and setState()

9 jobs for randomstate in 15 minutes and 8 seconds (queued for 1 second)