fork download
  1. \ http://c...content-available-to-author-only...e.com/a/85291/34718
  2.  
  3. variable S \ seed with time
  4. utime S !
  5. : R \ xor-shift PRNG
  6. S @
  7. dup 13 lshift xor
  8. dup 17 rshift xor
  9. dup 5 lshift xor
  10. dup S !
  11. 6 mod \ between 0 and 6, exclusive
  12. ;
  13.  
  14. : f 33 0 DO R LOOP \ push 33 randoms
  15. 1 -5 DO \ for (J = -6; J < 0; J++)
  16. 33 0 DO \ for (I = 0; I < 33; I++)
  17. I PICK J + 0< 1+ IF \ if (stack[I] < J)
  18. 61 EMIT \ print "="
  19. ELSE
  20. 32 EMIT \ print " "
  21. THEN
  22. LOOP
  23. CR \ print "\n"
  24. LOOP
  25. ; f
  26.  
Success #stdin #stdout 0s 6824KB
stdin
Standard input is empty
stdout
=         ===     =         =  = 
=        ==== =   ==     == =  = 
= ==   = ==== =  ===   ==== =  = 
====   ====== == ===   ==== = ===
==== ======== == === ====== = ===
=================================