Police are warning people to be wary about a scam that involves people being asked to think of a 4-digit number to receive a hamper full of groceries.

The victims are people who have had their wallets or purses stolen a few days earlier and unbeknownst to them, this is an attempt to get the pin number to their eftpos and credit cards.