| name | language | licence |
|---|---|---|
| Find all subviews with matching resize mask | Objective-C | Other |
| Random integer between two specific values | Objective-C | Other |
| Custom Two-View Predicate Editor keypath=BOOL Template | Objective-C | Other |
| Examine View/Subview Bindings | Objective-C | Other |
| Get Class Name for Object | Javascript | Other |
< 1 2 3 4 >
language: Objective-C
licence: Other
Random integer between two specific values
options: view full snippet • send to code collector
-(NSInteger) randomClampMinTo:(NSInteger)_min maxTo:(NSInteger)_max
{
return( (NSInteger)(((_max - _min + 1) * ((double)random() / (double)0x7FFFFFFF )) + _min) );
}



library
objective-c (22)