math.js

来自「javascript 很酷的类库」· JavaScript 代码 · 共 23 行

JS
23
字号
/*
 * Isomorphic SmartClient
 * Version 6.5 (2008-04-30)
 * Copyright(c) 1998-2007 Isomorphic Software, Inc. All rights reserved.
 * "SmartClient" is a trademark of Isomorphic Software, Inc.
 *
 * licensing@smartclient.com
 *
 * http://smartclient.com/license
 */
//// Math helpers//isc.Math = {    random : function (a,b) {        if (b==null) {            return Math.round(Math.random()*a)        } else {            return Math.round(Math.random()*(b-a))+a        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?