You're better off putting ```INT()``` around the ```RND * 16```. Because the C++ compiler code is forced to do a type-casting or something else to handle a float value to fit it as integer and then rounding errors could happen. (shrugs)
Also you might lose some information assigning an element from ```Titles()``` array which is an array of VLS's, while "Title" field from UDT could hold only 24 characters.
Code: (Select All)
P.Title = Titles(INT(RND * 16))
Also you might lose some information assigning an element from ```Titles()``` array which is an array of VLS's, while "Title" field from UDT could hold only 24 characters.