Fix gen_randomsc bugs and add generate script to runner

gen_randomsc:
  1. modify if statement due to arguments default settings change in argparser
  2. support multi-level script output folder
runner:
  add generate random script