Type your ugBASIC program here (remember: keywords like PRINT must be UPPERCASE!).
Click on Build menu to select the target: you will download the compiled binary file!

99 DEFINE DEFAULT TYPE SIGNED BYTE 100 CLS: RANDOMIZE 101 DIM cpc(6) 109 REM INTIALIZE ARRAY 110 FOR i = 0 TO 5 120 cpc(i) = i 130 NEXT 139 REM START SHUFFLING 140 FOR i = 5 TO 1 STEP -1 150 rndnumber = RND(i) 160 tmpnumber = cpc(i) 170 cpc(i) = cpc(rndnumber) 180 cpc(rndnumber) = tmpnumber 190 NEXT 200 PRINT cpc(0);cpc(1);cpc(2);cpc(3);cpc(4);cpc(5) 210 GOTO 110

Welcome to the ugBASIC sandbox!

This tool was designed to quickly test whether the code you are writing compiles correctly and determines the desired results. Since the source is compiled thanks to dedicated servers, separate from the browser you are using, some commands are not available: for example, you cannot load external files or resources by using the LOAD command. If you need to develop a program with a complete tool, we recommend installing the executables or the UGBASIC-IDE.

Unless required by applicable law or agreed to in writing, this website is given on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.