How is your experience with the OutSystems Community?
29
Views
2
Comments
Random function

Hi everyone 


Is there in OutSystems any function that can perform tasks such as selecting a name from a list of strings randomly? 

I won't use it in a companion app that will select the weapon randomly based on choosing a number  

2026-07-23 14-34-51
Nuno Reis
 
MVP

Hello.

Yes, in this discussion you can see for records in SQL and for lists.

https://www.outsystems.com/forums/discussion/90555/how-to-generate-random-rows-from-an-aggregate/


2023-09-06 07-26-35
Sudip Pal

Hi @Alwaleed Sido 

If you want to generate the random string in client side, then use the below JS to generate random number.

Once you have the random number you can generate random string from List of String very easily.

Thanks,

Sudip

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.