number of trials -> cmd-line arg