Implemented RandomDistribution reader and writer plus unittest