Implemented random sources.