ex18 randbuffer done