Grains
All you need is
Java
, and this program will chop your sample into the desired number of grains.