V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
如果想在 V2EX 获得更好的推广效果,欢迎了解 PRO 会员机制:
https://www.v2ex.com/pro/about
Chat
V2EX  ›  推广

送 10 本 GitChat 精品专栏 + 10 个 价值 199 GitChat 会员 | GitChat 1024 活动

  •  
  •   Chat · Oct 22, 2019 · 9620 views
    This topic created in 2391 days ago, the information mentioned may be changed or developed.

    抽奖规则

    形式: 评论

    规则: 一人只能中一件奖品

    截止日期: 2019 年 10 月 24 日 10:40

    抽奖: 从回复楼层中随机抽取,中奖结果会以附言形式公布于本帖,并 @ 各位中奖用户,可以先买,已买用户会进行退款,先抽专栏,再抽会员。

        function createRandom(num,from,to)
        {
            var arr=[]; 
            var json={};  
            while(arr.length<num)
            {
                var ranNum=Math.round(Math.random()*(to-from))+from;
                if(!json[ranNum])
                {
                    json[ranNum]=1;
                    arr.push(ranNum); 
                }
            }
            return arr;
        }
        
        createRandom(10,0,回复楼层) //抽奖
    

    代码来源:源码

    活动

    GitChat 1024 所有技术专栏五折,仅限最后一天

    该活动解释权归 GitChat 所有。

    Supplement 1  ·  Oct 27, 2019
    Supplement 2  ·  Oct 27, 2019
    专栏:@yuerjiajia、 @BBrother、 @diyazhu、 @Chat、 @HFX3389、 @bxb100、 @santom、 @CodeEncryption、 @shadowfkill、 @lixingcai

    会员:@dave4one、 @dreampuf、 @lands、 @berserkerXu、 @whp404、 @pigcandance、 @zerozz、 @twttwt、 @xishijt、 @wbf1013

    以上同学私聊 V2 主页截图给微信 gitchatty7 即可领取。
    257 replies    2019-10-24 22:28:16 +08:00
    1  2  3  
    akakidz
        1
    akakidz  
       Oct 22, 2019
    来了来了
    xiaoxinwan
        2
    xiaoxinwan  
       Oct 22, 2019
    增加一条评论
    memedahui
        3
    memedahui  
       Oct 22, 2019
    万一呢
    jeymingwu
        4
    jeymingwu  
       Oct 22, 2019
    啊哈
    zhuzhibin
        5
    zhuzhibin  
       Oct 22, 2019 via iPhone
    zhuawadao
        6
    zhuawadao  
       Oct 22, 2019
    就我了
    bxb100
        7
    bxb100  
       Oct 22, 2019 via Android
    分母来了🥺
    GeekHao
        8
    GeekHao  
       Oct 22, 2019
    111
    qiubaowei
        9
    qiubaowei  
       Oct 22, 2019
    来了来了
    gg3015
        10
    gg3015  
       Oct 22, 2019
    来来来了
    sx1huoying
        11
    sx1huoying  
       Oct 22, 2019
    冲冲冲
    EZVIK
        12
    EZVIK  
       Oct 22, 2019
    中了吃
    pigcandance
        13
    pigcandance  
       Oct 22, 2019
    我是锦鲤
    d8txc
        14
    d8txc  
       Oct 22, 2019 via Android
    吃了么
    isnowify
        15
    isnowify  
       Oct 22, 2019
    分母
    some3284
        16
    some3284  
       Oct 22, 2019
    冲冲冲
    ares586
        17
    ares586  
       Oct 22, 2019
    lei 了 lei 了
    Rcnaec
        18
    Rcnaec  
       Oct 22, 2019
    冲冲冲
    xpfd
        19
    xpfd  
       Oct 22, 2019
    冲冲冲
    Chat
        20
    Chat  
    OP
       Oct 22, 2019
    @bxb100 感谢感谢
    Chat
        21
    Chat  
    OP
       Oct 22, 2019
    @memedahui 万一就能中了!
    Stoulla
        22
    Stoulla  
       Oct 22, 2019
    增加分母
    xiaowangge
        23
    xiaowangge  
       Oct 22, 2019
    V2EX 官方,要是有抽奖、投票类的功能就方便了
    xinyewdz
        24
    xinyewdz  
       Oct 22, 2019
    来了。搞一波。
    Chat
        25
    Chat  
    OP
       Oct 22, 2019
    @xiaowangge 期待,这样也方便一些。
    yumenawei
        26
    yumenawei  
       Oct 22, 2019
    中奖率--
    Leonard
        27
    Leonard  
       Oct 22, 2019
    试试运气
    ittianyu
        28
    ittianyu  
       Oct 22, 2019
    来了
    lleppa
        29
    lleppa  
       Oct 22, 2019
    中会员吧,那个比较划算
    Chat
        30
    Chat  
    OP
       Oct 22, 2019
    @lleppa 可以可以
    L5411
        31
    L5411  
       Oct 22, 2019
    分母+1
    caowei922
        32
    caowei922  
       Oct 22, 2019
    来了,来了,我是分子
    mlhadoop
        33
    mlhadoop  
       Oct 22, 2019
    来了老弟
    blueram
        34
    blueram  
       Oct 22, 2019 via iPhone
    不错不错
    haoji
        35
    haoji  
       Oct 22, 2019 via iPhone
    分母一枚
    Elethomdog
        36
    Elethomdog  
       Oct 22, 2019
    摸奖
    loading
        37
    loading  
       Oct 22, 2019 via Android
    楼主,你这个抽奖代码是开源了,但并不代表方法公正。因为没直播,下次建议用例如某股票收市场价格这些东西进行计算。
    1358208301
        38
    1358208301  
       Oct 22, 2019 via Android
    来了来了
    hanhuoer
        39
    hanhuoer  
       Oct 22, 2019
    哈哈,抽个奖
    TeslaLyon
        40
    TeslaLyon  
       Oct 22, 2019
    支持支持!!!
    sytnishizuiai
        41
    sytnishizuiai  
       Oct 22, 2019
    你们的专栏有点少,昨天收到推送打折就买了个会员,加油!
    Aura7988
        42
    Aura7988  
       Oct 22, 2019
    试一下。
    johnnyho
        43
    johnnyho  
       Oct 22, 2019 via iPhone
    增加一个分母
    SphaelaClare
        44
    SphaelaClare  
       Oct 22, 2019 via Android
    分母 +1
    idaylily
        45
    idaylily  
       Oct 22, 2019
    中奖绝缘体
    Chat
        46
    Chat  
    OP
       Oct 22, 2019
    @loading 行,下次上新专栏我来试试这个,非常感谢!
    Chat
        47
    Chat  
    OP
       Oct 22, 2019
    @sytnishizuiai 哈哈,感谢感谢,专栏已经筹备了不少,接下来会上 SQL + Netty 的,后续还有算法的专栏哈。
    laofuzi
        48
    laofuzi  
       Oct 22, 2019
    支持支持
    tonyai
        49
    tonyai  
       Oct 22, 2019
    冲冲冲
    huangyuan413026
        50
    huangyuan413026  
       Oct 22, 2019
    分母 +1
    lachesis
        51
    lachesis  
       Oct 22, 2019 via iPhone
    万一呢
    NicholasYX
        52
    NicholasYX  
       Oct 22, 2019
    分母+1
    lvsoso
        53
    lvsoso  
       Oct 22, 2019
    万一呢
    FlyingDough
        54
    FlyingDough  
       Oct 22, 2019
    分母加一
    xishijt
        55
    xishijt  
       Oct 22, 2019
    分母+1
    allenwuli
        56
    allenwuli  
       Oct 22, 2019
    ???
    should
        57
    should  
       Oct 22, 2019
    试试呗
    Willie4582
        58
    Willie4582  
       Oct 22, 2019
    组成分母啦!
    killeder
        59
    killeder  
       Oct 22, 2019
    分子
    jaclla
        60
    jaclla  
       Oct 22, 2019
    分母!
    ltrans
        61
    ltrans  
       Oct 22, 2019
    欧吃矛
    loveeatdog123
        62
    loveeatdog123  
       Oct 22, 2019
    我来了。黑手!
    hhyyd
        63
    hhyyd  
       Oct 22, 2019
    (*^▽^*)分母~
    yinian
        64
    yinian  
       Oct 22, 2019
    分子
    daimazha
        65
    daimazha  
       Oct 22, 2019
    分母+1
    chuhemiao
        66
    chuhemiao  
       Oct 22, 2019
    gitchat
    Chennyh
        67
    Chennyh  
       Oct 22, 2019 via iPhone
    来了来了
    54yinhang
        68
    54yinhang  
       Oct 22, 2019
    来了来了
    zerozz
        69
    zerozz  
       Oct 22, 2019
    分子来了
    HFX3389
        70
    HFX3389  
       Oct 22, 2019
    let it go!
    justin2018
        71
    justin2018  
       Oct 22, 2019
    分母来了~~~
    Tenma
        72
    Tenma  
    PRO
       Oct 22, 2019
    高级会员支持一波
    adamwym
        73
    adamwym  
       Oct 22, 2019
    来做分母了
    littlerainer
        74
    littlerainer  
       Oct 22, 2019 via Android
    冲冲冲!
    twttwt
        75
    twttwt  
       Oct 22, 2019
    来了来了
    xiethan
        76
    xiethan  
       Oct 22, 2019
    loading
    justin2018
        77
    justin2018  
       Oct 22, 2019
    @Chat 这个样式是不是有点问题 o(╯□╰)o

    achenme
        78
    achenme  
       Oct 22, 2019
    分母来了~~~
    balaWgc
        79
    balaWgc  
       Oct 22, 2019
    我来康康
    diyazhu
        80
    diyazhu  
       Oct 22, 2019
    来了来了
    dinjufen
        81
    dinjufen  
       Oct 22, 2019
    pending...
    ZeroKill
        82
    ZeroKill  
       Oct 22, 2019
    分子 10086
    young4u
        83
    young4u  
       Oct 22, 2019
    我来组成分母
    alanv2
        84
    alanv2  
       Oct 22, 2019
    分母+1
    alanv2
        85
    alanv2  
       Oct 22, 2019
    多刷一个概率能大点吗
    zhenxian
        86
    zhenxian  
       Oct 22, 2019
    分母+1
    leehung
        87
    leehung  
       Oct 22, 2019 via iPhone
    来了
    sanqian
        88
    sanqian  
       Oct 22, 2019
    万一呢?
    YIFZ
        89
    YIFZ  
       Oct 22, 2019
    自愿当份子
    lingdong
        90
    lingdong  
       Oct 22, 2019
    分母加 1
    lcjqq99
        91
    lcjqq99  
       Oct 22, 2019
    拉低中奖概率
    mmqmyy
        92
    mmqmyy  
       Oct 22, 2019
    分母
    pangleon
        93
    pangleon  
       Oct 22, 2019
    还真没看过这边的课程 不知道水平怎么样
    whatever1992
        94
    whatever1992  
       Oct 22, 2019
    分母
    tsingwong
        95
    tsingwong  
       Oct 22, 2019
    来了来了。分母来了
    frandy
        96
    frandy  
       Oct 22, 2019
    试试看
    ryuutanyou
        97
    ryuutanyou  
       Oct 22, 2019
    我来组成坟墓
    mlc880926
        98
    mlc880926  
       Oct 22, 2019
    增加一条评论
    bao6211830
        99
    bao6211830  
       Oct 22, 2019
    分母分母
    santom
        100
    santom  
       Oct 22, 2019
    分母
    1  2  3  
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5495 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 406ms · UTC 01:24 · PVG 09:24 · LAX 18:24 · JFK 21:24
    ♥ Do have faith in what you're doing.