{"id":809,"date":"2009-12-21T12:11:00","date_gmt":"2009-12-21T04:11:00","guid":{"rendered":""},"modified":"2013-11-17T16:49:30","modified_gmt":"2013-11-17T08:49:30","slug":"delphi%e9%9a%8f%e6%9c%ba%e7%94%9f%e6%88%90%e4%b8%8d%e9%87%8d%e5%a4%8d%e7%9a%84%e6%95%b0","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/809.html","title":{"rendered":"Delphi\u968f\u673a\u751f\u6210\u4e0d\u91cd\u590d\u7684\u6570"},"content":{"rendered":"<pre class=\"brush: delphi; title: ; notranslate\" title=\"\">\r\nprocedure TForm1.Button1Click(Sender: TObject);\r\nvar\r\n  b: array of integer;\r\n  num: Integer;        \/\/\u968f\u673a\u6570\u7684\u4e2a\u6570\r\n  i, temp: integer;\r\nbegin\r\n  num := 10;\r\n  SetLength(b,num);\r\n  for i := 1 to num DO\r\n    b&#x5B;i] := i;\r\n  ListBox1.Clear;\r\n  for i := 1 to num do\r\n  begin\r\n    temp := Random(num - i + 1) + 1;\r\n    ListBox1.Items.Add(IntToStr(b&#x5B;temp]));\r\n    b&#x5B;temp] := b&#x5B;num - i + 1];\r\n  end;\r\nend;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>procedure TForm1.Button1Click(Sender: TObject); var b:  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-809","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=809"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/809\/revisions"}],"predecessor-version":[{"id":4706,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/809\/revisions\/4706"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}