Skip to content

Commit

Permalink
finishing dot Util separation (leaving Util for now), see #4
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Feb 14, 2025
1 parent fed711b commit 5c99f10
Show file tree
Hide file tree
Showing 17 changed files with 486 additions and 181 deletions.
4 changes: 2 additions & 2 deletions js/Random.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import optionize from '../../phet-core/js/optionize.js';
import Bounds2 from './Bounds2.js';
import dot from './dot.js';
import Range from './Range.js';
import Utils from './Utils.js';
import Vector2 from './Vector2.js';
import { boxMullerTransform } from './util/boxMullerTransform.js';

type RandomOptions = {

Expand Down Expand Up @@ -147,7 +147,7 @@ export default class Random {
* The distribution of the random numbers is gaussian, with a mean = 0 and standard deviation = 1
*/
public nextGaussian(): number {
return Utils.boxMullerTransform( 0, 1, this );
return boxMullerTransform( 0, 1, this );
}

/**
Expand Down
Loading

0 comments on commit 5c99f10

Please sign in to comment.