This was a busy man as far as wives, partners and children went, but I'm not sure he actually had as many as connected to him. The Peerage doesn't list but 8 children by 3 different women and Wikipedia lists 9 children, 2 wives, a mistress and of his listed children who were illegitimate it just doesn't mention who their mother(s) were.
At any rate, it seems to be a stretch to connect him to over twenty children and the majority of them undocumented.
James Hamilton III, Clan Hamilton (@)Sir Lord Admiral, High Sheriff of Lanarkshire, Lord High Admiral of Scotland, Lieutenant General of Scotla
James Hamilton III, Clan Hamilton (@)Sir Lord Admiral, High Sheriff of Lanarkshire, Lord High Admiral of Scotland, Lieutenant General of Scotla
1475–1529
Birth 25 APR 1475 • Hamilton, Lanarkshire, Scotland, United Kingdom
Death 21 JUL 1529 • Kinneil, West Lothian, Scotland, United Kingdom
Spouse and children
Margaret ( Marion per Peerage)(Mary) Boyd (@) of Bonshaw,
1477–1559
James Hamilton (@)(U) of Finnart
1495–1540
Spouse and children
Beatrix Drummond (A)(mistress of James Hamilton)
Margaret Hamilton (A)
1505–
John “Clydesdale John” Hamilton (U)(AH) of Samuelston
1512–1558
Spouse and children
Beatrix Drummond (A)(mistress of James Hamilton)
Margaret Hamilton (A)
1505–
John “Clydesdale John” Hamilton (U)(AH) of Samuelston
1512–1558
Spouse and children
Janet (Beaton) Bethune (@)"Countess of Arran", of Creich, Fife Scotland
1486–1522
Helen Hamilton (A) Countess Argyll,
1515–1590
James Hamilton , Clan Hamilton(@) 2nd Earl of Arran, Duc de Châtellerault
1516–1575
Jean Janet Hamilton (@) "Countess Glencairn", 13th great-grandmother
1517–1579
are all I have found so far.