Jump to content
UBot Underground

Random value to list


Recommended Posts

http://img651.imageshack.us/img651/6486/randomvaluetolist.png

 

It does not save a number.

I expect to get a number between 1 and 4 in a list.

The list remains empty.

 

What am i doing wrong? :blink:

Link to post
Share on other sites

I think this is one of those things whereby you can try it but it does not necessarily works. Sort of like doing numeric calculations in a Text field. Sure you can do it without an error but is it right?

 

The bot I have shows at least three different ways to achieve the same results of your original code.

 

For me, I like option 2.

Rand-in-List.ubot

Link to post
Share on other sites

I honestly think that Content field in the Add List node is pure text so when you try using a numeric item like $Rand it does not process it.

 

I may add it to the Enhancement list so it can be checked on.

Link to post
Share on other sites

I honestly think that Content field in the Add List node is pure text so when you try using a numeric item like $Rand it does not process it.

 

I may add it to the Enhancement list so it can be checked on.

 

Yes thanks.

Add it to the enhancement list to be able to use text AND numbers.

Link to post
Share on other sites

I think this is one of those things whereby you can try it but it does not necessarily works. Sort of like doing numeric calculations in a Text field. Sure you can do it without an error but is it right?

 

The bot I have shows at least three different ways to achieve the same results of your original code.

 

For me, I like option 2.

 

Workarounds does not work correctly, as it gives 5 when you $rand 1 and 4.

So it should give either 1,2,3, or 4 and not 5.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...