Writes RandDataTest