[core] use uniform distribution for generating all values of the random matrixes