public static LedgerBook GetRandomBook(int Size, LedgerSides Side) { LedgerBook book = new LedgerBook(Side); for (int i = 0; i < Size; i++) { Thread.Sleep(100); //random 对象被产生的瞬间小于系统时钟时不会有变化。此处需要等待。 book.Add(GetRandomItem()); } return(book); }
public LedgerBook(LedgerSides side) { Side = side; }