His international career began in one-day cricket, when he featured at the first World Cup in 1975. Test cricket came much later, with his debut in the format arriving seven years after that tournament, though he appeared in very few Tests. His time in the one-day side was also brief.
Although he was regarded mainly as a batsman who offered some bowling, his output for Sri Lanka and at first-class level rarely matched that billing. Flashes of quality did appear, but they were infrequent, and he is generally seen as a player who did not fulfil his potential.
Ranasinghe drew wide attention as a member of the rebel Sri Lankan team that went to South Africa in 1985-86. Everyone in that party received a lifetime ban, which was later overturned. He went on to spend a considerable period in club cricket and afterwards moved into coaching. His death in 1998, shortly before what would have been his 42nd birthday, came as a shock.