Thread:Campinator/@comment-27219153-20170113230759/@comment-25101690-20170116015508

Here is the decompiled code of the method that creates trade entries with random prices:

I don't have the code for the function  but I can't imagine it being anything fancy. It's part of the Minecraft source code.