import random


def bomber(length, width, bomb, m, n):
    """
    Place bombs randomly (position of first click and its surroundings cannot be bombs)
    :param length: length of the board
    :param width: width of the board
    :param bomb: number of bombs
    :param m: horizontal position of first click
    :param n: vertical position of first click
    :return: list of bomb positions
    """
    forbidden = ((m - 1, n - 1), (m - 1, n), (m - 1, n + 1), (m, n - 1), (m, n), (m, n + 1), (m + 1, n - 1), (m + 1, n),
                 (m + 1, n + 1))
    candidates = [(x, y) for x in range(length) for y in range(width) if (x, y) not in forbidden]
    return random.sample(candidates, bomb)