机智的算法 发表于 2015-11-06 | 分类于 笔记 | | 持续更新好了…… 取随机正负(ruby) (-1) ** rand(2) 取同步锁(java) synchronized(MyClass.class) { // do sth. }