The previous challenges covered how to use some of the animation properties and the @keyframes rule. Another animation property is the animation-iteration-count, which allows you to control how many times you would like to loop through the animation.
对于整数区间获取随机整数: m,n均为整数,且n>m. 获取[m,n)区间内的随机整数: 1 var aNumber = (n - m) * Math.random() + m; 2 var result = Math.floor(aNumber); 获取获取[m,n]区间内的随机整数: 1 var aNumber = (n+1- m) * Math.random() + m; 2 var result = Math.floor(aNumber); 获取对于区间(m,n)的随机整数,JS代码: