DESKTOP-O1UAITJ_20200910-史鹏华

一,问题

​ 大乐透中我写成 array[i]=random.nextInt(bound)+1; int e =array[i];这样的时候程序不输出结构也不报错写成int e =random.nextInt(bound)+1;运行成功。

``` java

public void produce(int begin , int bound ,int length ) {
int toIndex=begin+length;
for (int i = begin; i < toIndex; i++) {
// array[i]=random.nextInt(bound)+1;
// int e =array[i];
int e =random.nextInt(bound)+1;
if (this.notExists(e,toIndex)) {

            array[i]=e;
        }else {

            i--;
        }
    }

}

```

二,吐槽

被这坑了老半天...........................