给定的限制下内均匀随机生成</div>
<p></p></div></div></div></div></div><div class="row"><div class="column"><h4 class="ui top attached block header">输出格式</h4><div class="ui bottom attached segment font-content"><div style="position: relative; overflow: hidden;"><div class=content><div>对于每次形如 1 l r 或 2 l r 操作，输出一行，表示所求的值对 10^9 + 7 取模的结果。</div>
<p></p></div></div></div></div></div><div class="row"><div class="column"><h4 class="ui t