phetsims / resistance-in-a-wire

"Resistance in a Wire" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/resistance-in-a-wire
GNU General Public License v3.0
1 stars 4 forks source link

How to handle ._shuffle #83

Closed veillette closed 7 years ago

veillette commented 7 years ago

For PhET-IO, how should,

    // randomize the array of dots so that we can show/hide them in a random way as resistivity changes
    dotGroup.children = _.shuffle( dotGroup.children );

in WireNode.js be handled, if at all?

jbphet commented 7 years ago

Hi @veillette! If you're asking about how to make it compatible with phet-io so that results are repeatable, plese use phet.joist.random.shuffle.

zepumph commented 7 years ago

I fixed the line of code. Closing