IBM i Access Client Solutions

 View Only

HAScript: How to generate random characters [A-Z]?

  • 1.  HAScript: How to generate random characters [A-Z]?

    Posted Fri February 09, 2024 05:24 AM
    Using 'Character.toString(65)' from the Java.lang.Character combining with Java.lang.Math is my first attempt.
     
    But on some of the computers I tried, 
    It throws a runtime error: 'Java.lang.Character does not contain the specified method toString'
     
    As I am not allowed to make much changes on those computers,
    is there any way to generate random characters [A-Z]?
     
    Thank you very much.


    ------------------------------
    tudis lei
    ------------------------------