I make the good.cpp to works with int for random

and sorting number.