居然是无分号党!!!!!!!

在 2014年5月19日 下午12:27,Joey Chan <[email protected]> 写道:
> 问下push上去要什么账号什么的。。?
>
> 我顺便放出我的抽奖算法,js写的,应该很容易看懂:
>
> function randomNumber(top, bottom) {
>
>         var tmpt = Number(top)
>
>         var tmpb = Number(bottom)
>
>         var gap = tmpt - tmpb
>
>         var ran = Math.round(Math.random() * 10000)
>
>         var result = ran % gap
>
>         console.log("gap, ran, %:" ,gap, ran, result)
>
>         var isExist = false
>
>         for (var i=0; i<lotteryModel.count; i++){
>
>             if (result == (lotteryModel.get(i).value - tmpb)) {
>
>                 isExist = true
>
>                 break
>
>             }
>
>         }
>
>         if (isExist) {
>
>             return randomNumber(top, bottom)
>
>         }
>
>
>         return result
>
>     }
>
>
> 在 2014年5月18日星期日UTC+8下午5时34分23秒,Jactry Zeng写道:
>>
>> 昨天下午和大家聊得很开心,收获颇多,又长见识了!
>>
>> 一些收尾工作还是要做下:
>> 1. 活动有拍摄照片、录像的朋友可以私信给我,我整理上传到 gzlug 的相册,方便大家查看;
>> 2. 两位讲者的 slide 私信给我,我上传到 gzlug 的空间,存档记录;
>> 3. 昨天我没中奖啊!严重怀疑抽奖程序有水!:P 所以 Joey 麻烦把程序 push 到 gzlug 的 github/gitcafe
>> org,也方便以后的活动可以用到~
>> 4. 搜集各种会后感想、建议、吐槽,大家有写的可以发到邮件列表分享,记得加上 OT
>>
>>
>> 谢谢大家,下次聚会再见 :)
>> --
>> Regards,
>> Jactry Zeng
>>
> --
> 您收到此邮件是因为您订阅了Google网上论坛中的“广州 GNU/Linux 用户组”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到[email protected]。
> 要发帖到此论坛,请发送电子邮件至[email protected]。
> 通过http://groups.google.com/group/gzlug访问此论坛。
> 要查看更多选项,请访问https://groups.google.com/d/optout。

-- 
您收到此邮件是因为您订阅了 Google 网上论坛的“广州 GNU/Linux 用户组”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到[email protected]。
要向此网上论坛发帖,请发送电子邮件至 [email protected]。
通过以下网址访问此论坛:http://groups.google.com/group/gzlug。
要查看更多选项,请访问 https://groups.google.com/d/optout。

回复