Weak test cases/verification
I noticed that many wrong submissions are getting accepted. \nOne of the approach, in which you divide the entire interval into whitelisted intervals, and findi
I noticed that many wrong submissions are getting accepted. \nOne of the approach, in which you divide the entire interval into whitelisted intervals, and finding the result is not correct.\n\n```\nclass Solution {\n\n    List<Integer> list = new ArrayList<>();\n\n    public Solution(int N, int[] blacklist) {\n        Arrays.sort(blacklist);\n        for(int i=-1;i<blacklist.length;i++){\n            int temp1 = i<0?-1:blacklist[i];\n            int temp2 = i+1>=blacklist.length?N:blacklist[i+1];\n            if(temp2-temp1>1){\n\t\t\t    /* \n\t\t\t\t / adding higher blacklisted value and lower blacklisted value to the list\n\t\t\t\t / all numbers between temp1 and temp2 are whitelisted numbers\n\t\t\t\t / (temp1, temp2) is whitelisted interval. \n\t\t\t\t*/\n                list.add(temp2);\n                list.add(temp1);\n            }\n        }\n    }\n    \n    public int pick() {\n        int r = (int)(Math.random()*(list.size()/2))*2;\n        \n        int temp2 = list.get(r);\n        int temp1 = list.get(r+1);\n\t\t/* \n\t\t / randomly a whitelisted interval is picked\n\t\t / from that whitelist interval, any number is randomly picked\n\t\t*/\n        return (int)(Math.random()*(temp2-temp1-1))+temp1+1;\n    }\n}\n\n```\n\n```\n["Solution", "pick", "pick", "pick", "pick", "pick", "pick", "pick", "pick", "pick", "pick", "pick", "pick", "pick", "pick", "pick"]\n[[100, [98]], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]\n```\n\n\nCode output:\n`[null,68,99,29,78,99,93,99,99,17,12,42,72,99,99,99]`\nExpected output:\n`[null,28,43,72,79,23,70,55,39,69,1,41,40,5,25,95]`\n\nIt is quite clear that probability of 99 is almost 50% as per as output, and it is wrong.
[]