摘要:
创建触发器: 1 DELIMITER $$ 2 3 CREATE TRIGGER cpr_del AFTER DELETE ON CLASS_PROPERTY_REL FOR EACH ROW 4 BEGIN 5 CALL gen_ci_property_value(); 6 END$$ 7 8 D 阅读全文
摘要:
C#中的Random在获得随机数的时,如果你想要随机循环取得100个随机数则使用如下代码会出现大量的重复数字。代码如下:using System;namespace ConsoleApplication1 { class Program { static void Main(string[] args) { for (int i = 0; i < 100; i++) { Random r = new Random(); double n = r.Next(100) / 100; n = getr(n, r); string str1... 阅读全文