Merge pull request #239 from ktakagaki/rand

Rand
Merge pull request #225 from ktakagaki/padLeftRight

Pad left right