Use into setup() a float value from a method that finds it

I was just thinking about a table.max() but it’s ok if your way is right…
I am a new one in processing and i try to understand…
Is your way accepted???