Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Oz 0.28 KB | None | 0 0
  1. local MakeList in
  2.     fun{MakeList M}
  3.         if M == 0 then nil
  4.         else
  5.             {OS.rand}|{MakeList M-1}
  6.         end
  7.     end
  8.     if N == 0 then nil
  9.     else
  10.     local L in
  11.         L = {New List init({MakeList M})}
  12.         L|{Producer M N-1}
  13.     end
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement