Implemented random generator with placement