I am trying something in Java and I need help from you all guys. So here is my problem:
I have a string of type regular expression, for example: A-H or 0-8 and I'd like to get a random value in that regex. So it would give something like:
myFunction ("0-8") returns 0 or 1 or 2 or 3 etc...
and myFunction ("A-H") returns A or B or C or D etc...
I need an idea how to do this effectively.
Bookmarks