Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你能用吗
irandom(-10,10)
生成负数?还是这个函数只提供数字 >=0?GML 的文档中没有信息。
几个例子:
a = -1 * irandom(10); a = -irandom(10); a = irandom(20) - 10; a = irandom_range(-10, 10);