random number generator
#1
Is there a way for me to get a random integer within a certain range?

e.g randomnumber(0,10) will return a number between 0 and 10.

Which I can then use to place an item or set a property.
Reply
#2
Looking at the built-in functions, there seems to be nothing. A python script should work, using random.randint() or similar, but someone else has to tell you how to get it to play with XBMC (or read the wiki, though it states to be outdated).
Reply
#3
You could use System.Time(ss) which would give a number between 00-59 I guess - not random but it should give the effect of being random.
Reply
#4
tree_jammer Wrote:Is there a way for me to get a random integer within a certain range?

e.g randomnumber(0,10) will return a number between 0 and 10.

Which I can then use to place an item or set a property.

You probably need a python script to be called and to set a window property with the random number.
Reply

Logout Mark Read Team Forum Stats Members Help
random number generator0