Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #28028 from joelburget/khanutilrandom

Replace Math.random() with KhanUtil.random().
  • Loading branch information...
commit cd99279ef897f45043a5781fbfe6fec92140c695 2 parents 0c9bb3b + 3a307a9
@beneater beneater authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 exercises/congruent_triangles_1.html
View
4 exercises/congruent_triangles_1.html
@@ -9,10 +9,10 @@
<div class="exercise">
<div class="vars">
<var id="MAIN">randomTriangleAngles.triangle()</var>
- <var id="MAIN_SIZE">5 + Math.random() * 2</var>
+ <var id="MAIN_SIZE">5 + random() * 2</var>
<var id ="IS_B">randRange( 0, 1 ) === 1 ? true : false</var>
<var id="B">IS_B ? MAIN : randomTriangleAngles.triangle()</var>
- <var id="B_SIZE">IS_B ? MAIN_SIZE : 2 + Math.random() * 2</var>
+ <var id="B_SIZE">IS_B ? MAIN_SIZE : 2 + random() * 2</var>
<var id="ANSWER">IS_B ? "Yes" : "No"</var>
<var id="A_ANGLES">[ 0, 1, 2 ]</var>
Please sign in to comment.
Something went wrong with that request. Please try again.