Skip to content

Commit

Permalink
Update random.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Nov 2, 2023
1 parent 0fa5214 commit 6fc3f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ember-math-helpers/src/helpers/random.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const MAX_DECIMALS = 20;
*/
export function random(
[upperBound, lowerBound]: RandomSignature['Args']['Positional'],
{ decimals }: RandomSignature['Args']['Named'],
{ decimals }: RandomSignature['Args']['Named'] = { decimals: 0 },
) {
// no positional args, but only an options hash from named args
if (typeof upperBound === 'undefined' && typeof lowerBound === 'undefined') {
Expand Down

0 comments on commit 6fc3f7a

Please sign in to comment.