Added info about generating random states.