### Question:
RandomFilter extends BaseTFilter { public void init() { _random = new Random(System.currentTimeMillis()); }  void init(); @Override boolean doFilter(TEvent event);  }### Answer:
@Test public void testNumeric() { RandomFilter rf = new RandomFilter(); rf.type = RandomFilter.Type.integer; rf.target = "ok"; rf.init(); TEvent e = new TEvent(""); for (int i = 0; i < 100; i++) { rf.filter(e); System.out.println(e.get("ok")); } }