POV-Ray : Newsgroups : povray.newusers : arrays and random numbers : arrays and random numbers Server Time
5 Sep 2024 16:18:43 EDT (-0400)
  arrays and random numbers  
From: CMcCabe
Date: 8 Apr 2000 22:06:26
Message: <38EFE55D.ADB3B7E5@fcmail.com>
ok, after seeing the recent posts of Sphere and Superellipsoid world in
the text.scene-files and binaries.images i tried to write something that
i thought would produce a similiar effect
upon trying to render it i came up with a message saying 'cannot assign
uninitialized identifier'
this error was produced when it got to this line:
#declare CityArray[XPos][ZPos]=RNum;
the RNum is declared on this line:
#declare RNum = int ( rand ( seed(802) ) );
i'm sort of assuming that i have something wrong with the way i'm using
the random number generator, but i'm not entirely sure
basically i'm trying to assign a random value to that position of the
array

any help would be greatly appreciated
CMcCabe


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.