LIMITED names list draw

I created an app that draws random names but I wanted to put a limit on the names to draw

Give us more info…
Which database you are using?
What have you tried so far?
show us your blocks…