[framework] Remove useless Random class.

+ Remove useless random.Random class.
+ Replace occurences of Random to get_random_str.
+ Remove useless Core's Random attribute.