Random Number Variable

2 posts / 0 new
Last post
#1 Mon, 08/15/2011 - 00:14
someguy

Random Number Variable

Is there a Webmin variable for a random number? For example ${$RND(3)} where (3) is the range/number of digits?

Right now in Virtualmin I have the default MySQL database name set to start with a custom field value and and end in _default, but I just ran in to an issue where I found out that a sub-server will get the same default database name and fail to create the server unless the MySQL feature is disabled for either to top-level server or the sub-server.

For now I have disabled creation of the default database, but I would like to re-enable that by setting the default database name to CF_default###.

Mon, 08/15/2011 - 09:20
andreychek

Howdy,

Unfortunately, there isn't currently a variable containing a random number.

I'll talk to Jamie and see if that's something that's in the realm of possibilities :-)

-Eric

Topic locked