document randnum and testchaining