WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 05-13-2013, 09:33 AM
jacky jacky is offline
Join Date: Jun 2011
Posts: 13
Ruturn of vizact.randint() is not a number

Hi everyone,

I ran a problem that the return of vizact.randint(1,5) function is " <vizact.VizRandomIntParam object at 0x02F7DF30> " instead of a number. I don't know the reason. Can someone explain this? Thanks very much.
Reply With Quote
Old 05-13-2013, 09:45 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
The vizact.randint command returns a dynamic parameter that can be used when creating vizact actions.

If you just want to random integer, you can use the random module.:
import random
number = random.randint(1,5)
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a character to a number jassel41 Vizard 1 02-10-2010 07:37 AM
Maximum Number of Avatars? EnvisMJ Vizard 3 05-12-2009 12:04 PM
reducing number of polys in IVE file vAlexia Vizard 1 04-20-2007 09:58 AM
number of textures to load lucalatini Vizard 2 05-12-2005 05:50 PM
limits on number of objects benelux Vizard 3 07-22-2004 01:26 PM

All times are GMT -7. The time now is 06:00 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC