Generate m random elements from set {1...n}