File: PV_Random.xml

package info (click to toggle)
openclonk 7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 145,828 kB
  • ctags: 33,094
  • sloc: cpp: 163,891; ansic: 82,846; xml: 29,876; python: 1,203; php: 767; makefile: 138; sh: 77
file content (48 lines) | stat: -rwxr-xr-x 1,834 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
  SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
  <func>
    <title>PV_Random</title>
    <category>Particles</category>
    <version>5.3.3 OC</version>
    <syntax>
      <rtype>array</rtype>
      <params>
        <param>
          <type>int</type>
          <name>start_value</name>
          <desc>Begin of the interval to draw the random number from.</desc>
		  <optional />
        </param>
		<param>
          <type>int</type>
          <name>end_value</name>
          <desc>End of the interval to draw the random number from.</desc>
		  <optional />
        </param>
		<param>
          <type>int</type>
          <name>reroll_interval</name>
          <desc>Interval in frames after which a new random number will be drawn.</desc>
		  <optional />
        </param>
      </params>
    </syntax>
    <desc>The value will be a random number in the interval from start_value to (not including) end_value. The values in between are not whole integers, but are also in fraction of integers. This means that PV_Random(0, 1) can not only return one value (the 0) but a lot of different values in the interval between 0 and 1.</desc>
    <remark>See the <emlink href="particle/index.html">particle documentation</emlink> for further explanations of the particle system.</remark>
    <related>
      <funclink>CreateParticle</funclink>
      <funclink>PV_Linear</funclink>
      <funclink>PV_Direction</funclink>
      <funclink>PV_Step</funclink>
      <funclink>PV_Speed</funclink>
      <funclink>PV_KeyFrames</funclink>
      <funclink>PV_Sin</funclink>
      <funclink>PC_Die</funclink>
      <funclink>PC_Bounce</funclink>
    </related>
  </func>
  <author>Zapper</author><date>2013-10</date>
</funcs>