distinguish debug and log in class Log.
find a new method for initializing random seed.