I'm from Indonesia, so I know the lottery game you are referring to very well. A lottery where the result is 4 digits and you can bet on 4,3,2 or even 1 digit.
Are there other types of lottery? I mean, the concept is you trying to guess the right number out of millions and billions of combinations. I doubt lotteries use the idea where players submit a random number and lotteries pick one winner since that guarantees one winner, unlike the latter which doesn't really guarantee one.
It does exist, I believe it is the one which OP is trying to ask here. The lottery is like a 4 digit numbers (0000-9999). Players can bet on 4 digit lets say 1234, bet on last 3 digit 234, last 2 digit 34 or even bet on a single digit based on the position of the guessed number. Surely the odds varies based on its probability.
For correct 4digit number player will win 3000x up to 9000x based on the online casino's rule because each casino has their own payout system.
For correct 3 digit the payout is 400x, 2digit is 70x and 1 digit correct on its position is 8x.