2017-10-30 6 views

答えて

1

10本の連続ロールのための次のコードプリント値:

local 
    r: RANDOM 
do 
    across 
     1 |..| 10 as i 
    from 
     create r.set_seed (...) -- ... is the initial "seed" 
     r.start 
    loop 
     io.put_integer (r.item \\ 6 + 1) 
     io.put_new_line 
     r.forth 
    end 
end 
関連する問題