In reply to hvgbl:
Why do you think that you need to have the ability to change the number of transactions? Why don’t you fix the number of transactions? If you need to improve coverage, re-run the same test with a different random seed? Or perhaps randomize the number of transactions? When you add a command line option to constrain the behavior of your testbench, you are reducing the effectiveness of the Constrained Random Verification methodology.