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

Modify numberBetween() to be order agnostic #683

Merged
merged 1 commit into from
Aug 26, 2015

Conversation

xfxf
Copy link
Contributor

@xfxf xfxf commented Aug 26, 2015

Hi, modified numberBetween() to be order agnostic (allow min/max to be supplied in either order).

I've done this as I found without this here, I had to put a lot of supporting conditional ordering code in my seeder script for a few specific usecases. This makes using it much cleaner and won't break anything that currently uses it.

(And yes, am aware of randomFloat())

Thanks!

fzaninotto added a commit that referenced this pull request Aug 26, 2015
Modify numberBetween() to be order agnostic
@fzaninotto fzaninotto merged commit 9ffdc01 into fzaninotto:master Aug 26, 2015
@fzaninotto
Copy link
Owner

Thanks

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants