@spa3212 said in UI button to perform specific function:
I wonder if it is possible to have a Button on a UI interface. When click it perform a specific Call to function.
Hello, What Logic Should I Use If I Want To Do The Specific Task Only x% Of The Time?
For Example:-
95% Of The Time It Should Open youtube.com
But 5% Of The Time It Should Open google.com
I Am Confused How To Detect That Which Thread Will Be The 5%.
@elleevans Math.floor(Math.random() * 100) > 95