Home > Article > Software Tutorial > How to use a form to create a lottery mini program in WPS - How to use a form to create a lottery mini program in WPS
Want to create a lottery applet in WPS? Don’t worry, PHP editor Yuzai has brought you a detailed guide. This tutorial will guide you step by step, from creating tables to using formulas to conduct draws, helping you easily implement a draw applet.
1. Prepare a lottery list and set the winner and winning number.
2. Enter the function =RANDBETWEEN(1,8) in the winning number cell, and the value is from 1 to the number of participants.
3. Enter the function in the winner’s cell: =VLOOKUP(F5,A1:B9,2,FALSE). Enter a value based on the cell.
4. Then, click on the winner’s cell, press and hold F9 to start the lottery, and release it to stop.
The above is the detailed content of How to use a form to create a lottery mini program in WPS - How to use a form to create a lottery mini program in WPS. For more information, please follow other related articles on the PHP Chinese website!