Simulator implements SimulatorAPI { @Override public RandomGenerator getRandomGenerator() { return rand.get(RandomProvider.class).masterInstance(); } Simulator(Builder b); @SuppressWarnings("static-method") @Deprecated boolean register(Model<?> m); @Override void register(Object obj); @Override void unregister(Object o); ImmutableSet<Model<?>> getModels(); ModelProvider getModelProvider(); long getCurrentTime(); long getTimeStep(); void addTickListener(TickListener listener); void removeTickListener(TickListener listener); void start(); void togglePlayPause(); void stop(); void tick(); boolean isPlaying(); @Override RandomGenerator getRandomGenerator(); Unit<Duration> getTimeUnit(); static Builder builder();  }
@Test public void testGetRnd() { assertNotNull(simulator.getRandomGenerator()); }