Fix some problems

random numbers generation &
HD Graphics card support