You could use “Len” after getting the random string, which will then give you the total number of characters that are in the string. Depending on what you’re trying to do, you might even want to just print out the “Random Integer” to get the array index. Hope this helps.
If you’re wanting to do it manually, try creating a new structure and having 2 values put into it. 1 being the string, and the other the float/integer value. Then you can create a data table for that structure, and set the default values.
Example: String: “Hello”, Float: “1”
Good tutorial to get you started with data tables, and structures: