View Single Post
# 2 16-12-2008 , 08:45 AM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
check out rand() in the documentation
you'll be able to grab a random value in the range of (in your example) 0 to 10 and use that in the select statement

if I had maya installed (learning the slightly cheaper blender at the minute) then I'd modify your code to get it working but you should be able to figure it out easily enough.

Si


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net