如何从1到10获取表中的随机数 [英] How to get random number in table from 1 to 10

查看:156
本文介绍了如何从1到10获取表中的随机数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[我需要像这样创建表格,但我可以弄清楚如何] [1]





[1]:https ://i.stack.imgur.com/64Lnk.png





i不知道如何从1到1获取随机数10到30或40行以及如何描述是否有任何数字优于8或其他数字应在表格中以特定颜色显示



我是什么尝试过:



[我需要创建这样的表但我能弄清楚如何] [1]

< br $> b $ b

[1]:https://i.stack.imgur.com/64Lnk.png





i不知道如何在30或40行中从1到10获取随机数,以及如何描述是否有任何数字优于8或其他数字应以特定颜色显示在表中

[i need to create table like this but i can figure out how ][1]


[1]: https://i.stack.imgur.com/64Lnk.png


i don't know how to get random number from 1 to 10 in 30 or 40 line and how to describe if any number is superior of 8 or an other number should display in table in a specific color

What I have tried:

[i need to create table like this but i can figure out how ][1]


[1]: https://i.stack.imgur.com/64Lnk.png


i don't know how to get random number from 1 to 10 in 30 or 40 line and how to describe if any number is superior of 8 or an other number should display in table in a specific color

推荐答案

PHP rand()函数 [ ^ ]。


这篇关于如何从1到10获取表中的随机数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆