Sorry, that is incorrect. Each individual molecule does move randomly, and they can't tell if they are in an area of high or low concentration. However, there are so many more molecules in the highly concentrated area that there is a greater chance that one of them will randomly wander over to the area of low concentration.