[core] Implements UniformGenerator.