I want to access to specific element of array using number that generated randomly.
for example,
I want to generate random number 0-9. After number is generated (in this example we assume random number is generated as 4), I want to access array5 and print screen.
How could I success this.
String array initialization code is below
I edited my code as equal size string like below. Each strings have 8 char.
How can I generate random number?
org 100h
array0: db "abstract", 0Dh,0Ah, 24h
array1: db "academic", 0Dh,0Ah, 24h
array2: db "accurate", 0Dh,0Ah, 24h
array3: db "bacteria", 0Dh,0Ah, 24h
array4: db "attorney", 0Dh,0Ah, 24h
array5: db "equation", 0Dh,0Ah, 24h
array6: db "umbrella", 0Dh,0Ah, 24h
array7: db "overcome", 0Dh,0Ah, 24h
array8: db "universe", 0Dh,0Ah, 24h
array9: db "analysis", 0Dh,0Ah, 24h
address = array0 + size*idx, why did you accept the linear-search answer?