Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Binomial Expansion: Fix the randRange instead of adding data-ensure
Browse files Browse the repository at this point in the history
Auditors: eater, alpert
  • Loading branch information
Michael Chang committed Feb 25, 2013
1 parent 1e33725 commit b85848b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/binomial_expansion.html
Expand Up @@ -14,13 +14,13 @@
<div class="exercise">
<div class="problems">
<div>
<div class="vars" data-ensure="SOLUTION < 100 && EXPONENT < 5">
<div class="vars" data-ensure="SOLUTION < 100">
<var id="TERM1_COEF">
<!-- 80% of the time, the coefficient should be 1 -->
randRangeWeightedExclude(1, 3, 1, 0.8, [0])
</var>
<var id="TERM2">randRange(1, 3)</var>
<var id="EXPONENT">randRange(3, 5)</var>
<var id="EXPONENT">randRange(3, 4)</var>
<var id="WHICH_TERM">randRange(1, EXPONENT)</var>
<var id="TERM_STRING">
EXPONENT === WHICH_TERM ? "x" :
Expand Down

0 comments on commit b85848b

Please sign in to comment.