Random Script

  • FeynmanLogomaker
    13th Apr 2013 Member 2 Permalink

    Yes, it is literally a random script.

     

    function random(xmin,ymin,xmax,ymax)
    for x=xmin,xmax do
    for y=ymin,ymax do
    r,g,b,temp,life,tmp,tmpTwo,willDraw = math.random(1,256),math.random(1,256),math.random(1,256),math.random(1,9999),math.random(1,1000),math.random
    (1,1000),math.random(1,755),math.random(0,1)
    if willDraw == 1 then
    tpt.create(x,y,'dmnd')
    tpt.set_property('dcolor',r*65536+g*256+b+16777216*255,x,y)
    tpt.set_property('ctype',r*65536+g*256+b,x,y)
    tpt.set_property('temp',temp,x,y)
    tpt.set_property('life',life,x,y)
    tpt.set_property('tmp',tmp,x,y)
    tpt.set_property('tmp2',tmpTwo,x,y)
    end
    end
    end
    end

     

    It creates randomness between x1,y1 and x2,y2. Free to use with no credit (but for what?)