This is a quote from the book "The ​Virtue Of Selfishness" by Ayn Rand
...The task of ethics is to define man’s proper code of values and thus to give him the means of achieving happiness. To declare, as the ethical hedonists do, that “the proper value is whatever gives you pleasure” is to declare that “the proper value is whatever you happen to value” — which is an act of intellectual and philosophical abdication, an act which merely proclaims t he futility of ethics and invites all men to play it deuces wild.

The philosophers who attempted to devise an allegedly rational code of ethics gave mankind nothing but a choice of...
read full book block explorer