Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: None  |  size: 0.18 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Arc4random float?
  2. float x = arc4random() % 100;
  3.        
  4. float x = (arc4random() % 100)/100;
  5.        
  6. float x = (arc4random() % 100)/100.0f;
  7.        
  8. float x = (arc4random() % 100)/(float)100;