From e446b90beb355c5c410ef3ad01f0dea07ed20cba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E9=9B=AA=E5=AF=92?=
 <fanxuehan@xuexuehanhandeMacBook-Pro.local>
Date: Fri, 9 Oct 2020 16:27:27 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Eutils=E5=87=BD?=
 =?UTF-8?q?=E6=95=B0=20between=20=E7=94=A8=E6=9D=A5=E8=BF=94=E5=9B=9E?=
 =?UTF-8?q?=E4=B8=89=E4=B8=AA=E6=95=B0=E4=B8=AD=E4=B8=AD=E9=97=B4=E7=9A=84?=
 =?UTF-8?q?=E9=82=A3=E4=B8=AA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 play/assets/tmpGame/script/utils.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/play/assets/tmpGame/script/utils.js b/play/assets/tmpGame/script/utils.js
index 36e92fb..55f4800 100644
--- a/play/assets/tmpGame/script/utils.js
+++ b/play/assets/tmpGame/script/utils.js
@@ -52,6 +52,10 @@ export function RandomInt(a, b = 0) {
     return Math.floor(Math.random() * (max - min) + min);
 }
 
+export function Between(a, b, c) {
+    return [a, b, c].sort((a, b) => a - b)[1];
+}
+
 export function randomSortByArr(arr) {
     const newArr = [];
     const tmpArr = arr.concat();
-- 
2.21.0