Generate random barriers