<?xml version="1.0" encoding="windows-1252"?>
<node id="1005401" title="Re: How to generate test data?" created="2012-11-24 12:21:01" updated="2012-11-24 12:21:01">
<type id="11">
note</type>
<author id="533863">
roboticus</author>
<data>
<field name="doctext">
&lt;p&gt;[abdullah.yildiz]:&lt;/p&gt;
&lt;p&gt;I don't see anything immediately wrong.  But I'll make a couple of suggestions:&lt;/p&gt;
&lt;ul&gt;
 &lt;li&gt;You can use a simpler version of for:
&lt;c&gt;
for (1 .. $array_size) {
   my $andom_number = int(rand($range));
   print DATASET $random_number;
}
&lt;/c&gt;
&lt;/li&gt;
&lt;li&gt;Do you need to keep the data around for later?  If not, then I'd skip putting the numbers in a file.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;...[roboticus]&lt;/p&gt;
&lt;p&gt;&lt;i&gt;When your only tool is a hammer, all problems look like your thumb.&lt;/i&gt;&lt;/p&gt;</field>
<field name="root_node">
1005386</field>
<field name="parent_node">
1005386</field>
</data>
</node>
