TaffyDB - rendering data to HTML
<p>Lets say you have a simple TaffyDB database:</p>

<pre><code>var example = TAFFY([
                     {fruit:"apple", color:"green", taste:"sweet"},
                     {fruit:"banana", color:"yellow", taste:"more sweet"},
                     {fruit:"tomato", color:"red", taste:"like tomato"} 
                    ]);
</code></pre>

<p>How would you render randomly one fruit after another to HTML:
My solution as a javascript beginner:</p>

<pre><code>var fruit = example().count();
var random =  Math.floor(Math.random()*count);
var fruit = example().select("fruit")[random];
var color = example().select("color")[random];
var taste = example().select("taste")[random];

$(document).ready(function(){
   $('#somediv').append("&lt;p&gt;" + fruit + "&lt;/p&gt;");
   $('#somediv').append("&lt;p&gt;" + color + "&lt;/p&gt;");
   $('#somediv').append("&lt;p&gt;" + taste + "&lt;/p&gt;");
});
</code></pre>

<p>I think that this is too complicated.<br>
<b>Would there be another solution to this?</b></p>
