罪と罰++二律背反

$ct1=int(rand(20))+40;
$ct2=int(rand(20))+40;
$ct3=int(rand(20))+40;
$ct4=int(rand(20))+40;
$ct5=int(rand(20))+40;
# 友好度 初期化
for ($self=1; $self<6;$self++){
  for ($other=1; $other<6;$other++){
    $cfs[$self.$other] = $CP{'cfs'.$self.$other};
    if ($other<$self){
      # ランダム
      $cfs[$self.$other] = int(rand(30)+40);
      # 固定値
      # $cfs[$self.$other] = 50;
    } elsif ($other>$self) {
      $cfs[$self.$other] = 0;
    }
    # clear
    #$cfs[$self.$other] = "";
  }
}

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-06-08 (金) 00:35:45 (4772d)