Random implemented and working