打印随机卡(Python)

时间:2016-10-25 19:53:27

标签: python-3.x random

我正在写一个处理一副牌的程序。我需要他们随机处理。我不确定是随机打印的。 这是我到目前为止的代码..

sub formatBorder()

dim rng as range
dim wks as worksheet

set wks = thisworkbook.worksheets("Sheet1") 'change sheet name if required
set rng = intersect(wks.usedrange,wks.range("B:L")) 

if rng is nothing then goto terminate

With rng.Borders
  .LineStyle = xlContinuous  
  .Color = vbRed
  .Weight = xlThin
End With

terminate:
set wks = nothing
set rng = nothing

end sub

1 个答案:

答案 0 :(得分:0)

以下是如何制作和随机播放卡片的示例。

class Test{
public:
  typedef int edge;
  const edge& getFirst() const { return doubleSet.first; }
  void add(i) { getFirst().insert(i); };
private:
   pair< set<edge>, set<edge> > doubleSet;
};