Add a MAX_PRIORITY for demo flowtest

Change-Id: Ib74be79cb8a5b9d01ed8f9eeaac49a7fe4939b19
diff --git a/apps/test/demo/src/main/java/org/onosproject/demo/DemoInstaller.java b/apps/test/demo/src/main/java/org/onosproject/demo/DemoInstaller.java
index d12133c..4fa383a 100644
--- a/apps/test/demo/src/main/java/org/onosproject/demo/DemoInstaller.java
+++ b/apps/test/demo/src/main/java/org/onosproject/demo/DemoInstaller.java
@@ -553,7 +553,7 @@
                             .matchEthDst(MacAddress.valueOf((Integer.MAX_VALUE - i) * RandomUtils.nextInt()));
 
 
-                    int randomPriority = RandomUtils.nextInt();
+                    int randomPriority = RandomUtils.nextInt(FlowRule.MAX_PRIORITY);
                     FlowRule f = DefaultFlowRule.builder()
                             .forDevice(d.id())
                             .withSelector(sbuilder.build())