I want to go from lines to points, but with the number a number of points specified in the attribute table.
I attach a photo, to help understand the problem.
Since your question is not very clear to me, so i am trying to answer your question based on my understanding. I guess you want to convert your line feature to point feature and you want to create point based on an attributes defined in your feature class. If that is the case then you could use
Densify GP tool ArcGIS Densify. This will allow you to generate points for your polyline geometry.
But densify alone can not solve your objective which is create points based on your feature class attribute, for that you need to write a python script with custom logic. I can outline the steps for that.
distanceparameter based on line length variable. You would be using this distance parameter in densify tool.
Hope this will solve your problem.