User Tools

Site Tools


prpl:randfloat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

prpl:randfloat [2016/12/02 18:33] – created - external edit 127.0.0.1prpl:randfloat [2023/08/06 11:36] (current) – Added the rest of the page (result, notation, description, and a example) SpeedCZ
Line 1: Line 1:
 <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]] <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]
  
-=====  RANDFLOAT  =====+=====  RandFloat  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+| | Float | [ - Float] |
  
  
 === Description === === Description ===
 +Pushes a random float between 0 and 1 to the stack
 === Examples === === Examples ===
 +<code>"I move diffrent every compilement :D" SetText
 +#moves the text up randomly between 0 and 15
 +RandFloat  mul(15) SetTextY
 +</code>
 <code> stack.Push(new Data((float)GameSpace.instance.RandDouble()));  <code> stack.Push(new Data((float)GameSpace.instance.RandDouble())); 
    
 </code> </code>
  
prpl/randfloat.txt · Last modified: 2023/08/06 11:36 by SpeedCZ