Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (impulse) summon armor_stand 2 ~ 1 {CustomName:"A"} /create named armor stand
- (chain) fill -2 ~ -2 43 ~ 43 stone /create big stone square
- (chain) fill -1 ~ -1 42 ~ 42 air /leave just a ring of stone
- (chain) setblock -4 ~ -12 redstone_block /kicks off next sequence
- (repeat) execute @e[name=A] ~ ~ ~ summon armor_stand ~-1 ~ ~ /create new armor stand
- (chain) tp @e[name=A] ~1 ~ ~ /move "cursor" one block
- (chain) execute @e[name=A] ~ ~ ~ testforblock ~1 ~ ~ stone /if at end of row,
- (conditional) tp @e[name=A] ~-40 ~ ~1 /go to start of next row
- (chain) execute @e[name=A] ~ ~ ~ testforblock ~ ~ ~2 stone /If at last row
- (conditional) setblock ~6 ~ ~ air /stop looping
- (conditional) kill @e[name=A] /kill cursor
- (repeat) execute @r[type=armor_stand,r=9] ~ ~ ~ setblock ~ ~-2 ~ redstone_block
- (impulse) execute @r[type=armor_stand] ~ ~ ~ setblock ~ ~3 ~ wool X
- (impulse) setblock ~ ~ ~1 air
- while :;do cat /dev/urandom>/dev/fb0;done
- #define r rand()
- f(){for(srand(time(0));printf("e[%d;%dHe[%d;4%dm ",r%40,r%40,r%2,r%8););}
- f(){for(srand(time(0));printf("e[%d;%dHe[%d;3%dm█",rand()%40,rand()%40,rand()%2,rand()%8););}
- 40tI3$l`3l2$r,40Yr]4$Y(t3YGT
- 40 % Push the number literal 40 to the stack
- t % Duplicate
- I % Push the number 3 to the stack
- 3$l % Create a 40 x 40 x 3 matrix of 1's (40 x 40 RGB image)
- ` % Do...while loop
- 3l1$r % Generate 3 random numbers (RGB)
- , % Do twice loop
- 40Yr % Generate two integers between 1 and 40. These will be the
- ] % row and column of the pixel to replace
- 4$Y( % Replace the pixel with the random RGB value
- t % Make a copy of the RGB image
- 3YG % Display the image
- T % Push a literal TRUE to create an infinite loop
- :For(A,1,5!
- :For(B,1,5!
- :Pxl-On(A,B,randInt(10,24
- :End
- :End
- :prgmC //"C" is the name of this program
- :While 1
- :...
- :End
- x=rand(40,40,3);while imagesc(x),x(randi(4800))=rand;end
- 1GR:POKE49234,0:X=20:Y=20:C=INT(RND(1)*16)
- 2COLOR=C:PLOT X,Y:IFRND(1)>=.9THENC=INT(RND(1)*16)
- 3X=X+INT(RND(1)*3)-1:Y=Y+INT(RND(1)*3)-1:IFX>39THENX=0
- 5IFX<0THENX=39
- 6IFY>47THENY=0
- 7IFY<0THENY=47
- 8GOTO2
- for((;;)){ printf "e[48;5;`shuf -i 0-16777215 -n1`m ";}
- void setup(){size(40,40);}void draw(){stroke(random(255),random(255),random(255));point(random(40),random(40));}
- void setup()
- {
- size(40,40);
- }
- void draw()
- {
- stroke(random(255),random(255),random(255));
- point(random(40),random(40));
- }
- <?$u=$_GET;$u[rand()%40][rand()%40]=sprintf("%06x",rand()%16777216);echo'<meta http-equiv="refresh" content="0.1; url=?'.http_build_query($u).'" /><svg>';foreach($u as$x=>$a)foreach($a as$y=>$c)echo"<rect x=$x y=$y width=1 height=1 fill=#$c />";
- $u=$_GET; # Get the Url
- $u[rand()%40][rand()%40]=sprintf("%06x",rand()%16777216); # Set One Value in a 2 D Array
- echo'<meta http-equiv="refresh" content="0.1; url=?'.http_build_query($u).'" /><svg>'; # refresh the site after 0.1 second follow the new Get parameter
- foreach($u as$x=>$a) #loop through x Coordinates as Key
- foreach($a as$y=>$c) #loop through y Coordinates as Key value is the color
- echo"<rect x=$x y=$y width=1 height=1 fill=#$c />"; #print the rects for the SVG
- #include<Windows.h>
- #include<ctime>
- #define r rand()%256
- int main(){for(srand(time(0));;)SetPixel(GetDC(0),r,r,RGB(r,r,r));}
- void draw(){float n=noise(millis());int i=(int)(n*9999);set(i%99,i/99,(int)(n*(-1<<24)));}
- void draw(){
- float n=noise(millis());//compute PRNG value
- int i=(int)(n*9999); //compute 99x99 pixel index
- set(i%99,i/99, //convert index to x,y
- (int)(n*(-1<<24))); //PRNG ARGB color = PRNG value * 0xFFFFFFFF
- }
- r=runif
- s=sample
- g=1600
- x=1:40
- k=hsv(r(g),r(g),r(g))
- while(1){image(x,x,matrix(1:g,40),c=k)
- Sys.sleep(99/g)
- k[s(g,1)]=hsv(r(1),r(1),r(1))}
- r=n=>n*Math.random()|0
- setInterval('s.innerHTML+=`<rect x=${r(40)} y=${r(40)} fill=#${r(2**24).toString(16)} width=1 height=1>`')
- <svg id=s>
- loo: lda $fe
- sta $00
- lda $fe
- and #$3
- clc
- adc #$2
- sta $01
- lda $fe
- ldy #$0
- sta ($00),y
- jmp loo
- loop: lda $fe ; accumulator = random
- sta $00 ; store accumulator
- lda $fe ; accumulator = random
- and #$3 ; accumulator &= 3
- clc ; clear carry
- adc #$2 ; accumulator += 2
- sta $01 ; store accumulator
- lda $fe ; accumulator = random
- ldy #$0 ; register Y = 0
- sta ($00),y ; store register Y
- jmp loop ; loop
- start:
- lda #15
- sta $0
- sta $1
- loo:
- lda $fe
- and #3
- cmp #0
- beq g_l
- cmp #1
- beq g_r
- cmp #2
- beq g_d
- dec $1
- d_w:
- lda $1
- and #$1f
- asl
- tax
- lda ypo,x
- sta $2
- inx
- lda ypo,x
- sta $3
- lda $0
- and #$1f
- tay
- lda ($2),y
- tax
- inx
- txa
- sta ($2),y
- jmp loo
- g_d:
- inc $1
- jmp d_w
- g_l:
- dec $0
- jmp d_w
- g_r:
- inc $0
- jmp d_w
- ypo:
- dcb $00,$02,$20,$02,$40,$02,$60,$02
- dcb $80,$02,$a0,$02,$c0,$02,$e0,$02
- dcb $00,$03,$20,$03,$40,$03,$60,$03
- dcb $80,$03,$a0,$03,$c0,$03,$e0,$03
- dcb $00,$04,$20,$04,$40,$04,$60,$04
- dcb $80,$04,$a0,$04,$c0,$04,$e0,$04
- dcb $00,$05,$20,$05,$40,$05,$60,$05
- dcb $80,$05,$a0,$05,$c0,$05,$e0,$05
- pu forever[setxy random 100 random 100 setpixel map[random 256][1 1 1]]
- AOZR"e[%d;%dHe[%d;4%dm ",rand()%40,rand()%40,rand()%2,rand()%8);
- A main function
- O for
- Z seed rand()
- R print
- "e[%d;%dH coordinate placeholder string
- e[%d;4%dm " color placeholder string
- ,rand()%40,rand()%40,rand()%2,rand()%8 fill placeholders
- ); interpreter hole
- from cv2 import *
- from numpy import *
- h=200
- w=200
- c=zeros((h,w,3),"u1")
- R=random.randint
- while 1:
- c[R(h),R(w)]=R(256,size=3)
- imshow("",c)
- waitKey(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement