We know that,
$$P(E)=\dfrac{n(E)}{n(S)}$$
where, $$P(E)$$ is the probability of an event $$E$$
$$n(E)$$ is the number of favorable outcomes and
$$n(S)$$ is the total number of trials.
Let $$E$$ be the event of getting a number less than $$3$$ i.e., $$1$$ or $$2$$.
Then, $$n(E)=21+9=30$$ and $$n(S)=100$$
$$\therefore P(E)=\dfrac{30}{100}=\dfrac3{10}$$