Update lfprng


Added calculate method, and some global variables.