マルコフ連鎖を実装
Merge branches 'activerecord' and 'activerecord'