Fix wrong random priority generation

Change-Id: I62d5c518fe0117534e79ae197a50b3d84a1e620f
diff --git a/cli/src/main/java/org/onosproject/cli/net/AddTestFlowsCommand.java b/cli/src/main/java/org/onosproject/cli/net/AddTestFlowsCommand.java
index 792ebbf..1f69190 100644
--- a/cli/src/main/java/org/onosproject/cli/net/AddTestFlowsCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/AddTestFlowsCommand.java
@@ -92,7 +92,8 @@
                         .matchEthDst(MacAddress.valueOf((Integer.MAX_VALUE - i) * RandomUtils.nextInt()));
 
 
-                int randomPriority = RandomUtils.nextInt();
+                int randomPriority = RandomUtils.nextInt(
+                        FlowRule.MAX_PRIORITY - FlowRule.MIN_PRIORITY + 1) + FlowRule.MIN_PRIORITY;
 
                 FlowRule addRule = DefaultFlowRule.builder()
                         .forDevice(d.id())