add random and scanner demo