html:
alert(Math.random());
</script >
php:
func: 5---10之间的随机函数
<?php echo rand(5,10); ?>
mysql:
func: 0----1之间的 随机浮点数
use: select rand();
func: 0----最大数 之间
use2: select 最大数*rand()
sample: select * from tbl_temp order by rand() limit 10;
mssql2000:
func: 0-----1 select rand();
Asp.Net:
Random rand=new Random();
System.Console.WriteLine(rand.Next(1,100));
System.Console.WriteLine(rand.Next(1,100));