randomiser now prints json string